25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix typo file:read() -> file:open()

This commit is contained in:
Evgeniy Khramtsov 2018-05-17 12:00:06 +03:00
parent c41bab9ca0
commit b64e1d95d2

View File

@ -414,7 +414,7 @@ process(_LocalPath, #request{method = Method, host = Host, ip = IP} = Request)
case catch gen_server:call(Proc, get_conf) of case catch gen_server:call(Proc, get_conf) of
{ok, DocRoot, CustomHeaders} -> {ok, DocRoot, CustomHeaders} ->
Path = str:join([DocRoot | Slot], <<$/>>), Path = str:join([DocRoot | Slot], <<$/>>),
case file:read(Path, [read]) of case file:open(Path, [read]) of
{ok, Fd} -> {ok, Fd} ->
file:close(Fd), file:close(Fd),
?INFO_MSG("Serving ~s to ~s", [Path, ?ADDR_TO_STR(IP)]), ?INFO_MSG("Serving ~s to ~s", [Path, ?ADDR_TO_STR(IP)]),