aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_static.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl
index d583fa9..fe6600c 100644
--- a/src/cowboy_static.erl
+++ b/src/cowboy_static.erl
@@ -324,7 +324,8 @@ file_contents(Req, #state{filepath=Filepath,
%% if the connection is closed while sending the file.
case Transport:sendfile(Socket, Filepath) of
{ok, _} -> ok;
- {error, closed} -> ok
+ {error, closed} -> ok;
+ {error, etimedout} -> ok
end
end,
{{stream, Filesize, Writefile}, Req, State}.