Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae

This commit is contained in:
WPT Sync Bot 2019-04-16 21:36:56 -04:00
parent a14b952fa3
commit 87dcce0f06
66 changed files with 697 additions and 266 deletions

View file

@ -484,7 +484,7 @@ class ClientHandshakeProcessor(ClientHandshakeBase):
if ch == '\n':
break
m = re.match('HTTP/\\d+\.\\d+ (\\d\\d\\d) .*\r\n', status_line)
m = re.match('HTTP/\\d+\\.\\d+ (\\d\\d\\d) .*\r\n', status_line)
if m is None:
raise ClientHandshakeError(
'Wrong status line format: %r' % status_line)

View file

@ -369,7 +369,7 @@ def _alias_handlers(dispatcher, websock_handlers_map_file):
for line in fp:
if line[0] == '#' or line.isspace():
continue
m = re.match('(\S+)\s+(\S+)', line)
m = re.match(r'(\S+)\s+(\S+)', line)
if not m:
logging.warning('Wrong format in map file:' + line)
continue

View file

@ -316,7 +316,7 @@ class WebSocketHandshake(object):
self._options.server_port,
self._options.use_tls))
if self._options.version is 8:
if self._options.version == 8:
fields.append(_sec_origin_header(self._options.origin))
else:
fields.append(_origin_header(self._options.origin))