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
1 changed files with 1 additions and 1 deletions

View File

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