diff options
author | lightsocks <damnhe@gmail.com> | 2015-10-10 16:41:21 +0800 |
---|---|---|
committer | lightsocks <damnhe@gmail.com> | 2015-10-10 16:41:21 +0800 |
commit | 534dd4b340cc1222c0e712d0c69fd4cf007ab4cd (patch) | |
tree | 1a6eaf2b005e8fa3df1bb128b20ce6f23449094e | |
parent | 282e4d4cd6f648b3eea1eff10bbff329e7a6dab0 (diff) | |
download | web-socket-js-534dd4b340cc1222c0e712d0c69fd4cf007ab4cd.tar.gz |
fix the empty cookie bug
-rw-r--r-- | flash-src/src/net/gimite/websocket/WebSocket.as | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flash-src/src/net/gimite/websocket/WebSocket.as b/flash-src/src/net/gimite/websocket/WebSocket.as index ee04322..8ae4e93 100644 --- a/flash-src/src/net/gimite/websocket/WebSocket.as +++ b/flash-src/src/net/gimite/websocket/WebSocket.as @@ -246,7 +246,7 @@ public class WebSocket extends EventDispatcher { "Sec-WebSocket-Key: {2}\r\n" + "Origin: {3}\r\n" + "Sec-WebSocket-Version: 13\r\n" + - "Cookie: {4}\r\n" + + (cookie == "" ? "" : "Cookie: {4}\r\n") + "{5}" + "\r\n", path, hostValue, key, origin, cookie, opt); |