mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -1,4 +1,15 @@
|
|||
def main(request, response):
|
||||
status = (request.GET.first("status", "404"), "HAHAHAHA")
|
||||
headers = [("Content-Type", "text/event-stream")]
|
||||
return status, headers, "data: data\n\n"
|
||||
|
||||
# According to RFC7231, HTTP responses bearing status code 204 or 205 must
|
||||
# not specify a body. The expected browser behavior for this condition is not
|
||||
# currently defined--see the following for further discussion:
|
||||
#
|
||||
# https://github.com/w3c/web-platform-tests/pull/5227
|
||||
if status[0] in ["204", "205"]:
|
||||
body = ""
|
||||
else:
|
||||
body = "data: data\n\n"
|
||||
|
||||
return status, headers, body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue