Update web-platform-tests to revision aa86bfbb569fee92a3176bae68e3b7ec54140a6d

This commit is contained in:
WPT Sync Bot 2020-07-22 08:20:19 +00:00
parent a242913629
commit 4c80634acb
102 changed files with 1207 additions and 360 deletions

View file

@ -1,9 +1,11 @@
from wptserve.utils import isomorphic_encode
def main(request, response):
code = int(request.GET.first("code", 200))
text = request.GET.first("text", "OMG")
content = request.GET.first("content", "")
type = request.GET.first("type", "")
code = int(request.GET.first(b"code", 200))
text = request.GET.first(b"text", b"OMG")
content = request.GET.first(b"content", b"")
type = request.GET.first(b"type", b"")
status = (code, text)
headers = [("Content-Type", type),
("X-Request-Method", request.method)]
headers = [(b"Content-Type", type),
(b"X-Request-Method", isomorphic_encode(request.method))]
return status, headers, content