From d92945bb8af8fd7ee2e56afc0ecf942ba9169c24 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 22 Jun 2008 20:38:16 +0000 Subject: - Eduard Bloch filed the debian bug report #487567 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487567) pointing out that libcurl used Content-Range: instead of Range when doing a range request with --head (CURLOPT_NOBODY). This is now fixed and test case 1032 was added to verify. --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/http.c b/lib/http.c index acb0f94d7..280cccecb 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2298,7 +2298,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) * or uploading and we always let customized headers override our internal * ones if any such are specified. */ - if((httpreq == HTTPREQ_GET) && + if(((httpreq == HTTPREQ_GET) || (httpreq == HTTPREQ_HEAD)) && !checkheaders(data, "Range:")) { /* if a line like this was already allocated, free the previous one */ if(conn->allocptr.rangeline) -- cgit v1.2.3