From 3242ea5f66d7e5714538a11832009cc23762b174 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sun, 2 Mar 2003 17:43:42 +0000
Subject: [PATCH] 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(+)

diff --git a/lib/http.c b/lib/http.c
index 699df53617..94f36c96a6 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:
-- 
GitLab