Skip to content

Commit

Permalink
Merge branch 'sp/maint-clear-postfields'
Browse files Browse the repository at this point in the history
* sp/maint-clear-postfields:
  http: clear POSTFIELDS when initializing a slot
  • Loading branch information
Junio C Hamano committed Apr 28, 2011
2 parents e839fe6 + 1e41827 commit 11c3e2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 11c3e2b

Please sign in to comment.