facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.54k stars 2.01k forks source link

Authentication issue for a connection with NO password. (Authorization header always added) #557

Open gcadmes opened 6 years ago

gcadmes commented 6 years ago

I'm connecting to a hardware device that conforms to WebSocket (RFC 6455). It has two accounts, Admin and User. The Admin account has a password set, but the User account does not. When attempting to connect as a user only with no password, I receive the WebSocketFailed event.

I should be able to log into a device as user with no password. Our app is cross-platform, supporting iOS, Android, Windows, Mac, & Chrombook. We're only having this issue with the SocketRocket.

Please fix this issue.

I can see your error here: https://github.com/facebook/SocketRocket/blob/master/SocketRocket/Internal/Utilities/SRURLUtilities.m#L44-L48

And here https://github.com/facebook/SocketRocket/blob/master/SocketRocket/Internal/Utilities/SRHTTPConnectMessage.m#L54-L58

Thanks much,