URL encoding for connection

19 views
Skip to first unread message

Aasmi Mehta

unread,
Jun 11, 2024, 8:55:59 AM6/11/24
to nats
Hi,

I have a nats server which used username and password for connection.
I am using nats.c lib for connection to nats url server using natsConnection_ConnectTo
and before requesting connection, percent encoding for username and password is added for special character.

When url is created which have special character in username and password, connection is not created.

Question is does nats.c support percent encoding for special character to username and password of connection url ?

Thanks & Regards


Lev Brouk

unread,
Jun 11, 2024, 11:18:10 AM6/11/24
to nats
Aasmi,

The nats C client presently does not apply %-decoding to the server URL parsing. I filed https://github.com/nats-io/nats.c/issues/762.

Lev Brouk

unread,
Jun 13, 2024, 1:14:10 PM6/13/24
to nats
Added in https://github.com/nats-io/nats.c/pull/765, will go in the v3.9.0 release.
Reply all
Reply to author
Forward
0 new messages