diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2018-04-19 13:21:33 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2018-04-19 13:21:33 +0200 |
commit | 42c029d5f7be60ee69bcb72d70f2bc7c87879dc0 (patch) | |
tree | 3d9229afeca07e362ce9e5baee9796d8fc22dad7 /src/rest.erl | |
parent | Fix deprecated call injected by 265c7b62 (diff) |
Fix type of rest:url/2
Diffstat (limited to 'src/rest.erl')
-rw-r--r-- | src/rest.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest.erl b/src/rest.erl index df6ed7f01..18bf1b5ee 100644 --- a/src/rest.erl +++ b/src/rest.erl @@ -174,13 +174,13 @@ base_url(Server, Path) -> end. url(Url, []) -> - Url; + binary_to_list(Url); url(Url, Params) -> L = [<<"&", (iolist_to_binary(Key))/binary, "=", (misc:url_encode(Value))/binary>> || {Key, Value} <- Params], <<$&, Encoded/binary>> = iolist_to_binary(L), - <<Url/binary, $?, Encoded/binary>>. + binary_to_list(<<Url/binary, $?, Encoded/binary>>). url(Server, Path, Params) -> case binary:split(base_url(Server, Path), <<"?">>) of [Url] -> |