mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix typo file:read() -> file:open()
This commit is contained in:
parent
c41bab9ca0
commit
b64e1d95d2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue