diff options
author | Loïc Hoguin <[email protected]> | 2015-03-30 00:02:08 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-03-30 00:02:08 +0200 |
commit | 0b2d73c1d70dfe1c291daa3211ace022cfa765a2 (patch) | |
tree | ee5eefbe18a8ef647e4f34e3ad3b9b892aaf5bb3 /src/gun_http.erl | |
parent | 6068736c62bae081c338349feca311cfd5443ded (diff) | |
parent | 54123924e717546920f10bad3f0bcda1d8af94c2 (diff) | |
download | gun-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.erl | 2 |
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; |