diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-15 15:01:10 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2014-02-05 10:32:22 +0100 |
commit | 86949cb7c32d1c07f9867e49d4fdcc6d47a7d216 (patch) | |
tree | 8d3556228e801ebb273c840b9ad845f5b751c9d9 | |
parent | eb816c14be5d0d70de45e250f92ff5c69834af78 (diff) | |
download | otp-86949cb7c32d1c07f9867e49d4fdcc6d47a7d216.tar.gz otp-86949cb7c32d1c07f9867e49d4fdcc6d47a7d216.tar.bz2 otp-86949cb7c32d1c07f9867e49d4fdcc6d47a7d216.zip |
Removed case clause for length = 0 for both HTTP1.0 and HTTP1.1
-rw-r--r-- | lib/inets/src/http_client/httpc_response.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/inets/src/http_client/httpc_response.erl b/lib/inets/src/http_client/httpc_response.erl index 37f5f2ce6d..7fd595c071 100644 --- a/lib/inets/src/http_client/httpc_response.erl +++ b/lib/inets/src/http_client/httpc_response.erl @@ -430,8 +430,6 @@ format_response({StatusLine, Headers, Body}) -> Length = list_to_integer(Headers#http_response_h.'content-length'), {NewBody, Data} = case Length of - 0 -> - {Body, <<>>}; -1 -> % When no lenght indicator is provided {Body, <<>>}; Length when (Length =< size(Body)) -> |