]> granicus.if.org Git - ejabberd/commitdiff
Fix deprecated call injected by 265c7b62
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 18 Apr 2018 12:16:56 +0000 (14:16 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 18 Apr 2018 12:16:56 +0000 (14:16 +0200)
src/rest.erl

index c954083aafa34c271739efab69d710ec8d3961d9..df6ed7f015e2f7e6b94489ab7a7a0523558a3c63 100644 (file)
@@ -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>>;