From: Christophe Romain Date: Wed, 18 Apr 2018 12:16:56 +0000 (+0200) Subject: Fix deprecated call injected by 265c7b62 X-Git-Tag: 18.04~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a567abcfdf0a5ab17ec7b05f72c36a6405f19602;p=ejabberd Fix deprecated call injected by 265c7b62 --- 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 -> <>;