diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-15 15:01:10 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-15 15:01:10 +0100 |
commit | 566ccc1242e79b555e78e2365291a8130355f8f3 (patch) | |
tree | 17bdaa8b3883145e6b5a664b0b41372d2f044a62 /lib/inets/src | |
parent | f7095c4c3ac256f2d587475d11a1cd09f9454a76 (diff) | |
download | otp-566ccc1242e79b555e78e2365291a8130355f8f3.tar.gz otp-566ccc1242e79b555e78e2365291a8130355f8f3.tar.bz2 otp-566ccc1242e79b555e78e2365291a8130355f8f3.zip |
Removed case clause for length = 0 for both HTTP1.0 and HTTP1.1
Diffstat (limited to 'lib/inets/src')
-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 f177aac8f2..9107dfbf05 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)) -> |