mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 1ac959f3e6198767fecf67740d3e1687b184265f
This commit is contained in:
parent
4f4e219e54
commit
33079866c1
61 changed files with 1114 additions and 284 deletions
|
@ -26,6 +26,11 @@ def main(request, response):
|
|||
response.set_error(400, "No Access-Control-Request-Method header")
|
||||
return "ERROR: No access-control-request-method in preflight!"
|
||||
|
||||
# https://github.com/whatwg/fetch/issues/922
|
||||
if request.headers.get("Accept", "") != "*/*":
|
||||
response.set_error(400, "Request does not have 'Accept: */*' header")
|
||||
return "ERROR: Invalid access in preflight!"
|
||||
|
||||
if "control_request_headers" in request.GET:
|
||||
stashed_data['control_request_headers'] = request.headers.get("Access-Control-Request-Headers", None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue