aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-30 00:02:08 +0200
committerLoïc Hoguin <[email protected]>2015-03-30 00:02:08 +0200
commit0b2d73c1d70dfe1c291daa3211ace022cfa765a2 (patch)
treeee5eefbe18a8ef647e4f34e3ad3b9b892aaf5bb3 /src/gun_http.erl
parent6068736c62bae081c338349feca311cfd5443ded (diff)
parent54123924e717546920f10bad3f0bcda1d8af94c2 (diff)
downloadgun-0b2d73c1d70dfe1c291daa3211ace022cfa765a2.tar.gz
gun-0b2d73c1d70dfe1c291daa3211ace022cfa765a2.tar.bz2
gun-0b2d73c1d70dfe1c291daa3211ace022cfa765a2.zip
Merge branch 'fix-body-no-contentlength' of https://github.com/unix1/gun
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 620f8ae..745c2a9 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -330,7 +330,7 @@ response_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;