1
0
Fork 0
firefox/testing/web-platform/tests/websockets/handlers/echo-cookie_wsh.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

12 lines
347 B
Python
Executable file

#!/usr/bin/python
from pywebsocket3 import msgutil
def web_socket_do_extra_handshake(request):
request.ws_cookie = request.headers_in.get('cookie')
def web_socket_transfer_data(request):
if request.ws_cookie is not None:
msgutil.send_message(request, request.ws_cookie)
else:
msgutil.send_message(request, '(none)')