aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-04-28 14:10:51 -0700
committerJunio C Hamano <gitster@pobox.com>2011-04-28 14:10:51 -0700
commit11c3e2b7bd617334e7730950166188e94e003f2b (patch)
treed8078eb0f49aad388afd97c2edd99125628530c4 /http.c
parente839fe6c1206292aeb4518939b8f124ae5068619 (diff)
parent1e41827d2d5cf0e4c6ebff91958fa47d69b7ff42 (diff)
downloadgit-11c3e2b7bd617334e7730950166188e94e003f2b.tar.gz
git-11c3e2b7bd617334e7730950166188e94e003f2b.tar.xz
Merge branch 'sp/maint-clear-postfields'
* sp/maint-clear-postfields: http: clear POSTFIELDS when initializing a slot
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index 9e767723e..b27bb57d6 100644
--- a/http.c
+++ b/http.c
@@ -536,6 +536,7 @@ struct active_request_slot *get_active_slot(void)
curl_easy_setopt(slot->curl, CURLOPT_CUSTOMREQUEST, NULL);
curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, NULL);
curl_easy_setopt(slot->curl, CURLOPT_WRITEFUNCTION, NULL);
+ curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, NULL);
curl_easy_setopt(slot->curl, CURLOPT_UPLOAD, 0);
curl_easy_setopt(slot->curl, CURLOPT_HTTPGET, 1);