From a567abcfdf0a5ab17ec7b05f72c36a6405f19602 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 18 Apr 2018 14:16:56 +0200 Subject: [PATCH] Fix deprecated call injected by 265c7b62 --- src/rest.erl | 1 - 1 file changed, 1 deletion(-) 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 -> <>;