aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5af1b12..86fc436 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -301,7 +301,7 @@ io_from_headers(Version, Headers) ->
_ ->
case lists:keyfind(<<"transfer-encoding">>, 1, Headers) of
false ->
- head;
+ body_close;
{_, TE} ->
case cow_http_hd:parse_transfer_encoding(TE) of
[<<"chunked">>] -> body_chunked;