summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Ichikawa <gimite@gmail.com>2011-04-09 13:36:25 +0900
committerHiroshi Ichikawa <gimite@gmail.com>2011-04-09 13:36:25 +0900
commit93034d8baa85ebf01915dd71d9a3c7ebeb36bee4 (patch)
tree3fee325587ee0c9aa747cf0b1640d5b3cbe6dc9a
parentbdadb791ec1d24db1810d04c9733b033c5ccb948 (diff)
downloadweb-socket-js-93034d8baa85ebf01915dd71d9a3c7ebeb36bee4.tar.gz
Fixing WebSocket-Protocol to Sec-WebSocket-Protocol.
-rw-r--r--WebSocketMain.swfbin175746 -> 175746 bytes
-rw-r--r--WebSocketMainInsecure.zipbin166597 -> 166589 bytes
-rw-r--r--flash-src/WebSocket.as2
3 files changed, 1 insertions, 1 deletions
diff --git a/WebSocketMain.swf b/WebSocketMain.swf
index 244c445..7561215 100644
--- a/WebSocketMain.swf
+++ b/WebSocketMain.swf
Binary files differ
diff --git a/WebSocketMainInsecure.zip b/WebSocketMainInsecure.zip
index 4b62b13..c02a249 100644
--- a/WebSocketMainInsecure.zip
+++ b/WebSocketMainInsecure.zip
Binary files differ
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;