Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
def main(request, response):
response.headers.set("Content-Type", "text/event-stream")
last_event_id = request.headers.get('Last-Event-ID', None)
if(last_event_id):
return "data: " + last_event_id + "\n\n"
last_event_id = request.headers.get("Last-Event-ID", None)
if last_event_id:
return "data: " + last_event_id + "\n\n"
else:
return "id: …\nretry: 200\ndata: hello\n\n"
idvalue = request.GET.first("idvalue", u"\u2026")
return "id: " + idvalue + "\nretry: 200\ndata: hello\n\n"