25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use httpc instead of the deprecated http

This commit is contained in:
Badlop 2011-11-26 17:20:06 +01:00
parent f7076f49b6
commit 5594e1470f

View File

@ -92,7 +92,7 @@ loop(_State) ->
%% TODO: Support comment lines starting by % %% TODO: Support comment lines starting by %
update_bl_c2s() -> update_bl_c2s() ->
?INFO_MSG("Updating C2S Blacklist", []), ?INFO_MSG("Updating C2S Blacklist", []),
case http:request(?BLC2S) of case httpc:request(?BLC2S) of
{ok, {{_Version, 200, _Reason}, _Headers, Body}} -> {ok, {{_Version, 200, _Reason}, _Headers, Body}} ->
IPs = string:tokens(Body,"\n"), IPs = string:tokens(Body,"\n"),
ets:delete_all_objects(bl_c2s), ets:delete_all_objects(bl_c2s),