From 86949cb7c32d1c07f9867e49d4fdcc6d47a7d216 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 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)) -> -- cgit v1.2.3