mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -5,10 +5,12 @@ def get_response(raw_headers, filter_value, filter_name):
|
|||
return "Syntax error: missing CRLF: " + line
|
||||
line = line[:-2]
|
||||
|
||||
if ': ' not in line:
|
||||
return "Syntax error: no colon and space: " + line
|
||||
if ':' not in line:
|
||||
return "Syntax error: no colon found: " + line
|
||||
name, value = line.split(':', 1)
|
||||
if len(value) > 1 and value[0] == ' ':
|
||||
value = value[1:]
|
||||
|
||||
name, value = line.split(': ', 1)
|
||||
if filter_value:
|
||||
if value == filter_value:
|
||||
result += name + ","
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue