-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
- I've searched for any related issues and avoided creating a duplicate
issue.
Description
There seems to be no way to pass authorization details containing special characters such as '#'.
Reproducible in:
- version: 7.2.1
- Node.js version(s): 10.19.0
Steps to reproduce:
On creating new WebSocket(adress,[porotocols]) pass as address either raw URL ws://usr:pass#@host:port/path or the properly encoded URL ws://usr:pass%23@host:port/path.
Expected result:
In the case of raw URL error would be expected. (which is what happens now)
In the case of encoded URL I'd however expect for the WebSocket authorization to be set as usr:pass#.
Actual result:
In case of encoded URL the WebSocket authorization is set as usr:pass%23 and is seemingly never decoded. Thus it seems there is no way to establish connection with any device using special characters in its authorization.
Attachments:
Metadata
Metadata
Assignees
Labels
No labels