From 93034d8baa85ebf01915dd71d9a3c7ebeb36bee4 Mon Sep 17 00:00:00 2001 From: Hiroshi Ichikawa Date: Sat, 9 Apr 2011 13:36:25 +0900 Subject: Fixing WebSocket-Protocol to Sec-WebSocket-Protocol. --- WebSocketMain.swf | Bin 175746 -> 175746 bytes WebSocketMainInsecure.zip | Bin 166597 -> 166589 bytes flash-src/WebSocket.as | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/WebSocketMain.swf b/WebSocketMain.swf index 244c445..7561215 100644 Binary files a/WebSocketMain.swf and b/WebSocketMain.swf differ diff --git a/WebSocketMainInsecure.zip b/WebSocketMainInsecure.zip index 4b62b13..c02a249 100644 Binary files a/WebSocketMainInsecure.zip and b/WebSocketMainInsecure.zip 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; -- cgit v1.2.1