]> granicus.if.org Git - curl/commitdiff
Init postdata properly before issuing a request, so that there isn't any
authorDaniel Stenberg <daniel@haxx.se>
Sun, 2 Mar 2003 17:43:42 +0000 (17:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 2 Mar 2003 17:43:42 +0000 (17:43 +0000)
lingering POST-stuff that confuses GET requests. Juan F. Codagnone reported
this problem in bug report #653859.

lib/http.c

index 699df536178a67c1c875095b4cebcb518a1a2456..94f36c96a63a6495a43be4e907455f42e0ed1b3b 100644 (file)
@@ -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: