Skip to content

Commit 93034d8

Browse files
committed
Fixing WebSocket-Protocol to Sec-WebSocket-Protocol.
1 parent bdadb79 commit 93034d8

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

WebSocketMain.swf

0 Bytes
Binary file not shown.

WebSocketMainInsecure.zip

-8 Bytes
Binary file not shown.

flash-src/WebSocket.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public class WebSocket extends EventDispatcher {
167167
var key3:String = generateKey3();
168168
expectedDigest = getSecurityDigest(key1, key2, key3);
169169
var opt:String = "";
170-
if (protocol) opt += "WebSocket-Protocol: " + protocol + "\r\n";
170+
if (protocol) opt += "Sec-WebSocket-Protocol: " + protocol + "\r\n";
171171
// if caller passes additional headers they must end with "\r\n"
172172
if (headers) opt += headers;
173173

0 commit comments

Comments
 (0)