Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sp/maint-clear-postfields' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 4 May 2011 21:58:56 +0000
(14:58 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 4 May 2011 21:58:56 +0000
(14:58 -0700)
* sp/maint-clear-postfields:
http: clear POSTFIELDS when initializing a slot
http.c
patch
|
blob
|
history
raw
(from parent 1:
be44a20
)
diff --git
a/http.c
b/http.c
index 9e767723ed1045445e91e79489cb8ec8bb861965..b27bb57d627f19d725b1f24aa3f06d261e48f8e5 100644
(file)
--- 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);