Draft 75 uses 'Web Socket'.
No detail is too small for The Hixie. Fixes #64
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -27,6 +27,7 @@ Contributors
|
||||
* Tavis Rudd
|
||||
* Sergey Shepelev
|
||||
* Chuck Thier
|
||||
* Nick V
|
||||
* Daniele Varrazzo
|
||||
* Ryan Williams
|
||||
|
||||
|
@@ -84,7 +84,7 @@ class WebSocketWSGI(object):
|
||||
if qs:
|
||||
location += '?' + qs
|
||||
if self.protocol_version == 75:
|
||||
handshake_reply = ("HTTP/1.1 101 WebSocket Protocol Handshake\r\n"
|
||||
handshake_reply = ("HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
|
||||
"Upgrade: WebSocket\r\n"
|
||||
"Connection: Upgrade\r\n"
|
||||
"WebSocket-Origin: %s\r\n"
|
||||
|
@@ -115,7 +115,7 @@ class TestWebSocket(_TestBase):
|
||||
result = sock.recv(1024)
|
||||
## The server responds the correct Websocket handshake
|
||||
self.assertEqual(result,
|
||||
'\r\n'.join(['HTTP/1.1 101 WebSocket Protocol Handshake',
|
||||
'\r\n'.join(['HTTP/1.1 101 Web Socket Protocol Handshake',
|
||||
'Upgrade: WebSocket',
|
||||
'Connection: Upgrade',
|
||||
'WebSocket-Origin: http://localhost:%s' % self.port,
|
||||
|
Reference in New Issue
Block a user