Update web-platform-tests to revision 1ac959f3e6198767fecf67740d3e1687b184265f

This commit is contained in:
WPT Sync Bot 2019-09-03 10:28:52 +00:00
parent 4f4e219e54
commit 33079866c1
61 changed files with 1114 additions and 284 deletions

View file

@ -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)