mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 4adce83d1f2b08fa2e92427c4687d0cf535aee53
This commit is contained in:
parent
d3763452b5
commit
3e4ec1724a
102 changed files with 3019 additions and 1309 deletions
|
@ -46,7 +46,10 @@ def handle_test(uuid, request, response):
|
|||
now = time.time()
|
||||
for header in config.get('response_headers', []):
|
||||
if header[0].lower() in LOCATIONHDRS: # magic locations
|
||||
header[1] = "%s&target=%s" % (request.url, header[1])
|
||||
if (len(header[1]) > 0):
|
||||
header[1] = "%s&target=%s" % (request.url, header[1])
|
||||
else:
|
||||
header[1] = request.url
|
||||
if header[0].lower() in DATEHDRS and isinstance(header[1], int): # magic dates
|
||||
header[1] = http_date(now, header[1])
|
||||
response.headers.set(header[0], header[1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue