Skip to content

Commit cfa6a21

Browse files
author
Hugo Schouman
committed
fix cookies import when create the websocket
1 parent a3d4432 commit cfa6a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SocketIO/Engine/SocketEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, So
281281
private func createWebSocketAndConnect() {
282282
var req = URLRequest(url: urlWebSocketWithSid)
283283

284-
addHeaders(to: &req, includingCookies: session?.configuration.httpCookieStorage?.cookies)
284+
addHeaders(to: &req, includingCookies: session?.configuration.httpCookieStorage?.cookies(for: urlWebSocketWithSid))
285285

286286
ws = WebSocket(request: req)
287287
ws?.callbackQueue = engineQueue

0 commit comments

Comments
 (0)