nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

extraHeaders not added in fushWaitingForPost #92

Closed Lumbi closed 8 years ago

Lumbi commented 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()

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.