mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 2d42384cf21efd71843295d319c1bab85b3acf4a
This commit is contained in:
parent
f2b224d610
commit
e851ef0cd2
1014 changed files with 5653 additions and 1590 deletions
|
@ -3,6 +3,11 @@ import json
|
|||
def main(request, response):
|
||||
headers = [("Content-Type", "text/javascript")]
|
||||
|
||||
body = "var header = %s;" % json.dumps(request.headers.get("sec-metadata", ""));
|
||||
body = "var header = %s;" % json.dumps({
|
||||
"dest": request.headers.get("sec-fetch-dest", ""),
|
||||
"mode": request.headers.get("sec-fetch-mode", ""),
|
||||
"site": request.headers.get("sec-fetch-site", ""),
|
||||
"user": request.headers.get("sec-fetch-user", ""),
|
||||
});
|
||||
|
||||
return headers, body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue