aboutsummaryrefslogtreecommitdiff
path: root/src/rest.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.erl')
-rw-r--r--src/rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.erl b/src/rest.erl
index 16cf09a34..7e509dec8 100644
--- a/src/rest.erl
+++ b/src/rest.erl
@@ -172,7 +172,7 @@ url(Server, Path, Params) ->
Base = base_url(Server, Path),
[<<$&, ParHead/binary>> | ParTail] =
[<<"&", (iolist_to_binary(Key))/binary, "=",
- (ejabberd_http:url_encode(Value))/binary>>
+ (misc:url_encode(Value))/binary>>
|| {Key, Value} <- Params],
Tail = iolist_to_binary([ParHead | ParTail]),
binary_to_list(<<Base/binary, $?, Tail/binary>>).