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: