mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision d04a8fc02b85bd32799691759c8c05ead07cd939
This commit is contained in:
parent
e8fdc677f4
commit
2b35c55ac7
63 changed files with 2068 additions and 340 deletions
|
@ -16,7 +16,10 @@ def main(request, response):
|
|||
headers.append(("Access-Control-Allow-Methods", "GET, POST, HEAD"))
|
||||
exposed_headers = ["x-request-" + header for header in checked_headers]
|
||||
headers.append(("Access-Control-Expose-Headers", ", ".join(exposed_headers)))
|
||||
headers.append(("Access-Control-Allow-Headers", ", ".join(request.headers)))
|
||||
if "allow_headers" in request.GET:
|
||||
headers.append(("Access-Control-Allow-Headers", request.GET['allow_headers']))
|
||||
else:
|
||||
headers.append(("Access-Control-Allow-Headers", ", ".join(request.headers)))
|
||||
|
||||
headers.append(("content-type", "text/plain"))
|
||||
return headers, ""
|
||||
|
|
|
@ -7,10 +7,14 @@ def main(request, response):
|
|||
status = 302
|
||||
headers = [("Content-Type", "text/plain"),
|
||||
("Cache-Control", "no-cache"),
|
||||
("Pragma", "no-cache"),
|
||||
("Access-Control-Allow-Origin", "*")]
|
||||
token = None
|
||||
("Pragma", "no-cache")]
|
||||
if "Origin" in request.headers:
|
||||
headers.append(("Access-Control-Allow-Origin", request.headers.get("Origin", "")))
|
||||
headers.append(("Access-Control-Allow-Credentials", "true"))
|
||||
else:
|
||||
headers.append(("Access-Control-Allow-Origin", "*"))
|
||||
|
||||
token = None
|
||||
if "token" in request.GET:
|
||||
token = request.GET.first("token")
|
||||
data = request.server.stash.take(token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue