aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-13 12:40:00 +0100
committerLoïc Hoguin <[email protected]>2017-12-13 12:40:00 +0100
commit34473bc247138fb66d4a6739317340f4e7197625 (patch)
tree668ef651be486b5c459b901cfcbbdd1a08631574 /src/cowboy_http.erl
parent576e2d21118829dbc018836c87dddb9037e9d3bf (diff)
downloadcowboy-34473bc247138fb66d4a6739317340f4e7197625.tar.gz
cowboy-34473bc247138fb66d4a6739317340f4e7197625.tar.bz2
cowboy-34473bc247138fb66d4a6739317340f4e7197625.zip
Fix Dialyzer warnings
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.