Skip to content

Commit 534dd4b

Browse files
committed
fix the empty cookie bug
1 parent 282e4d4 commit 534dd4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flash-src/src/net/gimite/websocket/WebSocket.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public class WebSocket extends EventDispatcher {
246246
"Sec-WebSocket-Key: {2}\r\n" +
247247
"Origin: {3}\r\n" +
248248
"Sec-WebSocket-Version: 13\r\n" +
249-
"Cookie: {4}\r\n" +
249+
(cookie == "" ? "" : "Cookie: {4}\r\n") +
250250
"{5}" +
251251
"\r\n",
252252
path, hostValue, key, origin, cookie, opt);

0 commit comments

Comments
 (0)