Skip to content

Commit add4f1b

Browse files
committed
Replace deprecated function calls in amqp10_client
http_uri:decode/1 -> uri_string:percent_decode/1 (cherry picked from commit 3715616)
1 parent 52113a5 commit add4f1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/amqp10_client/src/amqp10_client.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ parse_usertoken("") ->
434434
none;
435435
parse_usertoken(U) ->
436436
[User, Pass] = string:tokens(U, ":"),
437-
{plain, to_binary(http_uri:decode(User)), to_binary(http_uri:decode(Pass))}.
437+
{plain,
438+
to_binary(uri_string:percent_decode(User)),
439+
to_binary(uri_string:percent_decode(Pass))}.
438440

439441
parse_tls_opts(M) ->
440442
lists:sort(maps:fold(fun parse_tls_opt/3, [], M)).

0 commit comments

Comments
 (0)