- 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.
This commit is contained in:
Daniel Stenberg
2008-06-22 20:38:16 +00:00
parent 90a6a59a2f
commit d92945bb8a
5 changed files with 67 additions and 3 deletions

View File

@@ -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)