Skip to content

Instantly share code, notes, and snippets.

@ericallam
Created June 1, 2010 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericallam/421377 to your computer and use it in GitHub Desktop.
Save ericallam/421377 to your computer and use it in GitHub Desktop.
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