summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorMasaya Suzuki <masayasuzuki@google.com>2019-01-10 19:33:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-10 23:00:56 (GMT)
commite6cf87b12d3b85b31637c865bbfaed62c3e59e94 (patch)
treeaf69d47ea93b11b324f235e1d6ab8d192b8cd03e /http.h
parent8dd2e88a923bd24775182f0a507c993e06a0aacb (diff)
downloadgit-e6cf87b12d3b85b31637c865bbfaed62c3e59e94.zip
git-e6cf87b12d3b85b31637c865bbfaed62c3e59e94.tar.gz
git-e6cf87b12d3b85b31637c865bbfaed62c3e59e94.tar.bz2
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>
Diffstat (limited to 'http.h')
-rw-r--r--http.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/http.h b/http.h
index d305ca1..eebf406 100644
--- a/http.h
+++ b/http.h
@@ -146,7 +146,6 @@ extern char *get_remote_object_url(const char *url, const char *hex,
/* Options for http_get_*() */
struct http_get_options {
unsigned no_cache:1,
- keep_error:1,
initial_request:1;
/* If non-NULL, returns the content-type of the response. */