diff options
Diffstat (limited to 'testing/web-platform/tests/websockets/handlers/echo-query_wsh.py')
-rwxr-xr-x | testing/web-platform/tests/websockets/handlers/echo-query_wsh.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/websockets/handlers/echo-query_wsh.py b/testing/web-platform/tests/websockets/handlers/echo-query_wsh.py new file mode 100755 index 0000000000..3921913495 --- /dev/null +++ b/testing/web-platform/tests/websockets/handlers/echo-query_wsh.py @@ -0,0 +1,9 @@ +#!/usr/bin/python + +from mod_pywebsocket import msgutil + +def web_socket_do_extra_handshake(request): + pass # Always accept. + +def web_socket_transfer_data(request): + msgutil.send_message(request, request.unparsed_uri.split('?', 1)[1] or '') |