Don't break old WebSocket closing

This commit is contained in:
Andrew Godwin
2010-06-10 15:20:13 +01:00
parent 62b16a9900
commit 4c7a9f74e6

View File

@@ -52,7 +52,7 @@ class WebSocketWSGI(object):
# Get the underlying socket and wrap a WebSocket class around it
sock = environ['eventlet.input'].get_socket()
ws = WebSocket(sock, environ)
ws = WebSocket(sock, environ, self.protocol_version)
# If it's new-version, we need to work out our challenge response
if self.protocol_version == 76: