diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-03-02 17:43:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-03-02 17:43:42 +0000 |
commit | 3242ea5f66d7e5714538a11832009cc23762b174 (patch) | |
tree | 07b2d623dfffc757dbbffb74d499ca3ffb36e459 | |
parent | 39a282bffce8ff255c691771f63b47f3d3bdf025 (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.
-rw-r--r-- | lib/http.c | 2 |
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: |