From 42c029d5f7be60ee69bcb72d70f2bc7c87879dc0 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Thu, 19 Apr 2018 13:21:33 +0200 Subject: [PATCH] Fix type of rest:url/2 --- src/rest.erl | 4 ++-- 1 file 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), - <>. + binary_to_list(<>). url(Server, Path, Params) -> case binary:split(base_url(Server, Path), <<"?">>) of [Url] -> -- 2.40.0