diff options
author | David Turner <dturner@twopensource.com> | 2015-11-02 16:39:58 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-11-02 14:18:06 -0800 |
commit | 835c4d3689972e616bd109cec3dd8cd4aa4d4c0d (patch) | |
tree | da7c8b996579dfcab25af29063fc8fc6dc219bf4 /t/t5515/refs.br-branches-one-merge_branches-one | |
parent | Ninth batch for 2.7 (diff) | |
download | tgif-835c4d3689972e616bd109cec3dd8cd4aa4d4c0d.tar.xz |
http.c: use CURLOPT_RANGE for range requests
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 request is being made. By manually
setting the range header instead of using CURLOPT_RANGE, we were
hiding the fact that this was a range request from libcurl. This
could cause corruption.
Signed-off-by: David Turner <dturner@twopensource.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-branches-one-merge_branches-one')
0 files changed, 0 insertions, 0 deletions