From 566ccc1242e79b555e78e2365291a8130355f8f3 Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Fri, 15 Feb 2013 15:01:10 +0100 Subject: Removed case clause for length = 0 for both HTTP1.0 and HTTP1.1 --- lib/inets/src/http_client/httpc_response.erl | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/inets') 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)) -> -- cgit v1.2.3