mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
12
tests/wpt/web-platform-tests/websockets/handlers/protocol_wsh.py
Executable file
12
tests/wpt/web-platform-tests/websockets/handlers/protocol_wsh.py
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from mod_pywebsocket import msgutil, util
|
||||
|
||||
def web_socket_do_extra_handshake(request):
|
||||
request.ws_protocol = request.headers_in.get('Sec-WebSocket-Protocol')
|
||||
#pass
|
||||
|
||||
def web_socket_transfer_data(request):
|
||||
while True:
|
||||
msgutil.send_message(request, request.ws_protocol)
|
||||
return
|
Loading…
Add table
Add a link
Reference in a new issue