diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_http.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl index 846ca4c..76475d2 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -245,9 +245,9 @@ data(State=#http_state{socket=Socket, transport=Transport, version=Version, Transport:send(Socket, Data), Length2 = Length - DataSize, if - Length2 =:= 0, IsFin -> + Length2 =:= 0, IsFin =:= fin -> State#http_state{out=head}; - Length2 > 0, not IsFin -> + Length2 > 0, IsFin =:= nofin -> State#http_state{out={body, Length2}} end; body_chunked -> %% HTTP/1.0 |