From: Daniel Stenberg Date: Sun, 2 Mar 2003 17:43:42 +0000 (+0000) Subject: Init postdata properly before issuing a request, so that there isn't any X-Git-Tag: curl-7_10_4~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3242ea5f66d7e5714538a11832009cc23762b174;p=curl Init postdata properly before issuing a request, so that there isn't any lingering POST-stuff that confuses GET requests. Juan F. Codagnone reported this problem in bug report #653859. --- diff --git a/lib/http.c b/lib/http.c index 699df5361..94f36c96a 100644 --- a/lib/http.c +++ b/lib/http.c @@ -997,6 +997,8 @@ CURLcode Curl_http(struct connectdata *conn) headers = headers->next; } + http->postdata = NULL; /* nothing to post at this point */ + switch(data->set.httpreq) { case HTTPREQ_POST_FORM: