diff options
author | Hiroshi Ichikawa <gimite@gmail.com> | 2011-04-09 13:36:25 +0900 |
---|---|---|
committer | Hiroshi Ichikawa <gimite@gmail.com> | 2011-04-09 13:36:25 +0900 |
commit | 93034d8baa85ebf01915dd71d9a3c7ebeb36bee4 (patch) | |
tree | 3fee325587ee0c9aa747cf0b1640d5b3cbe6dc9a | |
parent | bdadb791ec1d24db1810d04c9733b033c5ccb948 (diff) | |
download | web-socket-js-93034d8baa85ebf01915dd71d9a3c7ebeb36bee4.tar.gz |
Fixing WebSocket-Protocol to Sec-WebSocket-Protocol.
-rw-r--r-- | WebSocketMain.swf | bin | 175746 -> 175746 bytes | |||
-rw-r--r-- | WebSocketMainInsecure.zip | bin | 166597 -> 166589 bytes | |||
-rw-r--r-- | flash-src/WebSocket.as | 2 |
3 files changed, 1 insertions, 1 deletions
diff --git a/WebSocketMain.swf b/WebSocketMain.swf Binary files differindex 244c445..7561215 100644 --- a/WebSocketMain.swf +++ b/WebSocketMain.swf diff --git a/WebSocketMainInsecure.zip b/WebSocketMainInsecure.zip Binary files differindex 4b62b13..c02a249 100644 --- a/WebSocketMainInsecure.zip +++ b/WebSocketMainInsecure.zip diff --git a/flash-src/WebSocket.as b/flash-src/WebSocket.as index b9be6f7..04d7f05 100644 --- a/flash-src/WebSocket.as +++ b/flash-src/WebSocket.as @@ -167,7 +167,7 @@ public class WebSocket extends EventDispatcher { var key3:String = generateKey3(); expectedDigest = getSecurityDigest(key1, key2, key3); var opt:String = ""; - if (protocol) opt += "WebSocket-Protocol: " + protocol + "\r\n"; + if (protocol) opt += "Sec-WebSocket-Protocol: " + protocol + "\r\n"; // if caller passes additional headers they must end with "\r\n" if (headers) opt += headers; |