mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Automatic update from web-platform-testsFix Python 3 errors for wpt lint/serve (#11706) -- wpt-commits: 27406c9d238ac80c43bb62e87cd0305f59294527 wpt-pr: 11706
11 lines
361 B
Python
Executable file
11 lines
361 B
Python
Executable file
#!/usr/bin/python
|
|
from six.moves import urllib
|
|
|
|
|
|
def web_socket_do_extra_handshake(request):
|
|
url_parts = urllib.parse.urlsplit(request.uri)
|
|
request.extra_headers.append(('Set-Cookie', 'ws_test_'+(url_parts.query or '')+'=test; Path=/'))
|
|
|
|
def web_socket_transfer_data(request):
|
|
# Expect close from user agent.
|
|
request.ws_stream.receive_message()
|