From 3242ea5f66d7e5714538a11832009cc23762b174 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 2 Mar 2003 17:43:42 +0000 Subject: 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. --- lib/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/http.c') 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: -- cgit v1.2.3