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

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
{ok, DocRoot, CustomHeaders} ->
Path = str:join([DocRoot | Slot], <<$/>>),
case file:read(Path, [read]) of
case file:open(Path, [read]) of
{ok, Fd} ->
file:close(Fd),
?INFO_MSG("Serving ~s to ~s", [Path, ?ADDR_TO_STR(IP)]),