mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision aa86bfbb569fee92a3176bae68e3b7ec54140a6d
This commit is contained in:
parent
a242913629
commit
4c80634acb
102 changed files with 1207 additions and 360 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue