aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rest.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rest.erl b/src/rest.erl
index c954083aa..df6ed7f01 100644
--- a/src/rest.erl
+++ b/src/rest.erl
@@ -162,7 +162,6 @@ base_url(Server, Path) ->
<<"http", _/binary>> -> BPath;
_ ->
Base = ejabberd_config:get_option({ext_api_url, Server},
- fun(X) -> iolist_to_binary(X) end,
<<"http://localhost/api">>),
case binary:last(Base) of
47 -> <<Base/binary, BPath/binary>>;