X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http.c;fp=http.c;h=f582b13b915e58a189086cdec2bab6dbb94eac6a;hb=16c06fcb39eec5505c383b412ca2254bccf354a5;hp=c9393a84715aa543938b9c4f934186334486daae;hpb=f39f72d8cf03b61407f64460eba3357ec532280e;p=git.git diff --git a/http.c b/http.c index c9393a847..f582b13b9 100644 --- a/http.c +++ b/http.c @@ -280,6 +280,11 @@ static CURL *get_curl_handle(void) } curl_easy_setopt(result, CURLOPT_FOLLOWLOCATION, 1); +#if LIBCURL_VERSION_NUM >= 0x071301 + curl_easy_setopt(result, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL); +#elif LIBCURL_VERSION_NUM >= 0x071101 + curl_easy_setopt(result, CURLOPT_POST301, 1); +#endif if (getenv("GIT_CURL_VERBOSE")) curl_easy_setopt(result, CURLOPT_VERBOSE, 1);