Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: net/data/websocket/protocol-test_wsh.py

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/data/websocket/multiple-connections.html ('k') | net/data/websocket/proxied_request_check.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/websocket/protocol-test_wsh.py
diff --git a/net/data/websocket/protocol-test_wsh.py b/net/data/websocket/protocol-test_wsh.py
deleted file mode 100644
index 4dfdb177490ce941ee60f2f0ad8f0721259998f9..0000000000000000000000000000000000000000
--- a/net/data/websocket/protocol-test_wsh.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import cgi
-from mod_pywebsocket import msgutil
-
-
-def web_socket_do_extra_handshake(request):
- r = request.ws_resource.split('?', 1)
- if len(r) == 1:
- return
- param = cgi.parse_qs(r[1])
- if 'protocol' in param:
- request.ws_protocol = param['protocol'][0]
-
-
-def web_socket_transfer_data(request):
- msgutil.send_message(request, request.ws_protocol)
- # Wait for a close message.
- unused = request.ws_stream.receive_message()
« no previous file with comments | « net/data/websocket/multiple-connections.html ('k') | net/data/websocket/proxied_request_check.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698