mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
11
tests/wpt/web-platform-tests/common/refresh.py
Normal file
11
tests/wpt/web-platform-tests/common/refresh.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
def main(request, response):
|
||||
"""
|
||||
Respond with a blank HTML document and a `Refresh` header which describes
|
||||
an immediate redirect to the URL specified by the requests `location` query
|
||||
string parameter
|
||||
"""
|
||||
headers = [
|
||||
(b'Content-Type', b'text/html'),
|
||||
(b'Refresh', b'0; URL=' + request.GET.first(b'location'))
|
||||
]
|
||||
return (200, headers, b'')
|
Loading…
Add table
Add a link
Reference in a new issue