aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-08 11:31:04 +0100
committerFredrik Gustafsson <[email protected]>2013-03-08 11:31:04 +0100
commit6e6c8a8e3f4891285cdd5fcb9143a34f8fbecc12 (patch)
tree656c166c6ec26c4c15dff559f06b1cf2c994aed4 /lib/inets/src
parent02ee25e3cde4e1bec0b3724e28c2831508c98e6f (diff)
parent566ccc1242e79b555e78e2365291a8130355f8f3 (diff)
downloadotp-6e6c8a8e3f4891285cdd5fcb9143a34f8fbecc12.tar.gz
otp-6e6c8a8e3f4891285cdd5fcb9143a34f8fbecc12.tar.bz2
otp-6e6c8a8e3f4891285cdd5fcb9143a34f8fbecc12.zip
Merge branch 'fredrik/inets/httpc_length_zero' into maint
* fredrik/inets/httpc_length_zero: 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.erl2
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)) ->