aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-02 17:43:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-02 17:43:42 +0000
commit3242ea5f66d7e5714538a11832009cc23762b174 (patch)
tree07b2d623dfffc757dbbffb74d499ca3ffb36e459 /lib/http.c
parent39a282bffce8ff255c691771f63b47f3d3bdf025 (diff)
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.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 2 insertions, 0 deletions
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: