From 2ae6c47d5dfdff2d6d884284beb6b0322e8ac671 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 2 Oct 2010 00:22:48 +0200 Subject: HTTP: remove special case for 416 It was pointed out that the special case libcurl did for 416 was incorrect and wrong. 416 is not really different to other errors so the response body must be handled like for other errors/http responses. Reported by: Chris Smowton Bug: http://curl.haxx.se/bug/view.cgi?id=3076808 --- tests/data/test194 | 3 ++- tests/data/test92 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/data/test194 b/tests/data/test194 index 3ccc01ae5..582f197f7 100644 --- a/tests/data/test194 +++ b/tests/data/test194 @@ -17,11 +17,12 @@ Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4. Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT ETag: "ab57a-507-3f9968f3" Accept-Ranges: bytes -Content-Length: 87 +Content-Length: 4 Content-Range: bytes */87 Content-Type: image/gif Connection: close +bad diff --git a/tests/data/test92 b/tests/data/test92 index 21635753b..726aa7919 100644 --- a/tests/data/test92 +++ b/tests/data/test92 @@ -17,10 +17,11 @@ Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4. Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT ETag: "ab57a-507-3f9968f3" Accept-Ranges: bytes -Content-Length: 87 +Content-Length: 4 Content-Range: bytes */87 Content-Type: image/gif +bad -- cgit v1.2.3