aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 9fc098d..fa09480 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -981,8 +981,9 @@ commands(State0=#state{socket=Socket, transport=Transport}, StreamID,
[{sendfile, IsFin, Offset, Bytes, Path}|Tail]) ->
Transport:sendfile(Socket, Path, Offset, Bytes),
State = case IsFin of
- fin -> State0#state{out_state=done};
- nofin -> State0
+ fin -> State0#state{out_state=done}
+%% @todo Add the sendfile command.
+% nofin -> State0
end,
commands(State, StreamID, Tail);
%% Protocol takeover.