]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http: enable keep_error for HTTP requests
authorMasaya Suzuki <masayasuzuki@google.com>
Thu, 10 Jan 2019 19:33:47 +0000 (11:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Jan 2019 23:00:56 +0000 (15:00 -0800)
commite6cf87b12d3b85b31637c865bbfaed62c3e59e94
treeaf69d47ea93b11b324f235e1d6ab8d192b8cd03e
parent8dd2e88a923bd24775182f0a507c993e06a0aacb
http: enable keep_error for HTTP requests

curl stops parsing a response when it sees a bad HTTP status code and it
has CURLOPT_FAILONERROR set. This prevents GIT_CURL_VERBOSE to show HTTP
headers on error.

keep_error is an option to receive the HTTP response body for those
error responses. By enabling this option, curl will process the HTTP
response headers, and they're shown if GIT_CURL_VERBOSE is set.

Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
http.h
remote-curl.c