26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Use httpc instead of the deprecated http

This commit is contained in:
Badlop 2011-11-26 17:20:06 +01:00
parent ee968b5573
commit b89d4c7476

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),