aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-06-22 20:38:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-06-22 20:38:16 +0000
commitd92945bb8af8fd7ee2e56afc0ecf942ba9169c24 (patch)
treedc257077213861e33597c34a4a35b6dbe2ca7fff /lib
parent90a6a59a2f27124917ee6931f66594a636a4c591 (diff)
- 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.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
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)