Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

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