mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue