nats-io / nats.c

A C client for NATS
Apache License 2.0
382 stars 132 forks source link

Support URL (%-) encoding in server URL strings #762

Closed levb closed 2 months ago

levb commented 2 months ago

Observed behavior

Presently, the server URLs passed into natsConnection_ConnectTo, natsOptions_SetURL, or natsOptions_SetServers.

Expected behavior

%-encoded characters should be supported, specifically in username and password.

Server and client version

2.10, 3.8

Host environment

No response

Steps to reproduce

%-encode a username with special characters in a URL, and see the connection fail