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

Side by Side Diff: LayoutTests/http/tests/websocket/long-invalid-header_wsh.py

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 unified diff | Download patch
OLDNEW
1 from mod_pywebsocket import handshake 1 from mod_pywebsocket import handshake
2 2
3 3
4 def web_socket_do_extra_handshake(request): 4 def web_socket_do_extra_handshake(request):
5 msg = "HTTP/1.1 101 WebSocket Protocol Handshake\r\n" 5 msg = "HTTP/1.1 101 WebSocket Protocol Handshake\r\n"
6 msg += ("p" * 1024) + "\r\n" 6 msg += ("p" * 1024) + "\r\n"
7 msg += "\r\n" 7 msg += "\r\n"
8 request.connection.write(msg) 8 request.connection.write(msg)
9 raise handshake.AbortedByUserException("Abort the connection") # Prevents py websocket from sending its own handshake message. 9 raise handshake.AbortedByUserException("Abort the connection") # Prevents py websocket from sending its own handshake message.
10 10
11 11
12 def web_socket_transfer_data(request): 12 def web_socket_transfer_data(request):
13 pass 13 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698