mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:23:39 +03:00
- 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:
parent
90a6a59a2f
commit
d92945bb8a
5 changed files with 67 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue