From b64e1d95d2258a6ac40aa6352991ac1d5482c789 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 17 May 2018 12:00:06 +0300 Subject: [PATCH] Fix typo file:read() -> file:open() --- src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 1f92672f1..34138240e 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -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)]),