aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r--src/gun_http.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl
index eac9ede..6546df9 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -420,7 +420,7 @@ request_io_from_headers(Headers) ->
response_io_from_headers(<<"HEAD">>, _, _, _) ->
head;
-response_io_from_headers(_, _, 204, _) ->
+response_io_from_headers(_, _, Status, _) when (Status =:= 204) or (Status =:= 304) ->
head;
response_io_from_headers(_, Version, _Status, Headers) ->
case lists:keyfind(<<"content-length">>, 1, Headers) of