remote-curl: unset CURLOPT_FAILONERROR
commitb79bdd8c1208103f106e9cf7a535b625521b21c9
authorMasaya Suzuki <masayasuzuki@google.com>
Thu, 10 Jan 2019 19:33:49 +0000 (10 11:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Jan 2019 23:00:56 +0000 (10 15:00 -0800)
tree14e26ba4f1d67967ece2d7f30879cc9c70098cae
parentcf2fb92b00df0594aac2176b524db45b62795a38
remote-curl: unset CURLOPT_FAILONERROR

By not setting CURLOPT_FAILONERROR, curl parses the HTTP response
headers even if the response is an error. This makes GIT_CURL_VERBOSE to
show the HTTP headers, which is useful for debugging.

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