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.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 5b07a4c..5136a3b 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -1215,7 +1215,7 @@ stream_terminate(State0=#state{opts=Opts, in_streamid=InStreamID, in_state=InSta
info(State0, StreamID, {response, 204, #{}, <<>>});
chunked when Version =:= 'HTTP/1.1' ->
info(State0, StreamID, {data, fin, <<>>});
- streaming when ExpectedSize < SentSize ->
+ streaming when SentSize < ExpectedSize ->
terminate(State0, response_body_too_small);
_ -> %% done or Version =:= 'HTTP/1.0'
State0