mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae
This commit is contained in:
parent
a14b952fa3
commit
87dcce0f06
66 changed files with 697 additions and 266 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue