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:
issue.
Description
There seems to be no way to pass authorization details containing special characters such as '#'.
Reproducible in:
Steps to reproduce:
On creating
new WebSocket(adress,[porotocols])pass as address either raw URLws://usr:pass#@host:port/pathor the properly encoded URLws://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%23and is seemingly never decoded. Thus it seems there is no way to establish connection with any device using special characters in its authorization.Attachments: