Closed Lumbi closed 8 years ago
In SocketEngine.swift, the extraHeaders dictionary option correctly adds custom headers to doLongPoll's request, but does not add the same extraHeaders to in flushWaitingForPost()
SocketEngine.swift
extraHeaders
doLongPoll
flushWaitingForPost()
https://github.com/nuclearace/Socket.IO-Client-Swift/blob/76375bbcf3f708664151f4fae6cfc1c0bd798b52/SocketIOClientSwift/SocketEngine.swift#L585
This becomes an issue especially when restricting access to endpoints access using Basic Auth.
In
SocketEngine.swift
, theextraHeaders
dictionary option correctly adds custom headers todoLongPoll
's request, but does not add the sameextraHeaders
to influshWaitingForPost()
https://github.com/nuclearace/Socket.IO-Client-Swift/blob/76375bbcf3f708664151f4fae6cfc1c0bd798b52/SocketIOClientSwift/SocketEngine.swift#L585
This becomes an issue especially when restricting access to endpoints access using Basic Auth.