Created
June 1, 2010 19:39
-
-
Save ericallam/421377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/socket.io/transports/websocket.js b/lib/socket.io/transports/websocket.js | |
index 381b77c..e32c57f 100644 | |
--- a/lib/socket.io/transports/websocket.js | |
+++ b/lib/socket.io/transports/websocket.js | |
@@ -21,8 +21,8 @@ this.websocket = Client.extend({ | |
'HTTP/1.1 101 Web Socket Protocol Handshake', | |
'Upgrade: WebSocket', | |
'Connection: Upgrade', | |
- 'WebSocket-Origin: ' + this.request.headers.origin, | |
- 'WebSocket-Location: ws://' + this.request.headers.host + this.request.url, | |
+ 'Sec-WebSocket-Origin: ' + this.request.headers.origin, | |
+ 'Sec-WebSocket-Location: ws://' + this.request.headers.host + this.request.url, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment