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:
parent
c41bab9ca0
commit
b64e1d95d2
@ -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)]),
|
||||||
|
Loading…
Reference in New Issue
Block a user