Skip to content

Special Characters in WS Authorization #1831

@netrexfrost

Description

@netrexfrost
  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions