Re: [PATCH v4] http.c: use CURLOPT_RANGE for range requests

2015-11-02 Thread Jeff King
On Mon, Nov 02, 2015 at 04:39:58PM -0500, David Turner wrote: > A HTTP server is permitted to return a non-range response to a HTTP > range request (and Apache httpd in fact does this in some cases). > While libcurl knows how to correctly handle this (by skipping bytes > before and after the reque

[PATCH v4] http.c: use CURLOPT_RANGE for range requests

2015-11-02 Thread David Turner
A HTTP server is permitted to return a non-range response to a HTTP range request (and Apache httpd in fact does this in some cases). While libcurl knows how to correctly handle this (by skipping bytes before and after the requested range), it only turns on this handling if it is aware that a range