]> granicus.if.org Git - curl/commitdiff
Curl_proxyCONNECT: clear 'rewindaftersend' on success
authorOliver Schindler <schindlo37@gmail.com>
Mon, 18 Mar 2013 21:40:35 +0000 (22:40 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Mar 2013 21:53:40 +0000 (22:53 +0100)
After having done a POST over a CONNECT request, the 'rewindaftersend'
boolean could be holding the previous value which could lead to badness.

This should be tested for in a new test case!

Bug: https://groups.google.com/d/msg/msysgit/B31LNftR4BI/KhRTz0iuGmUJ

lib/http_proxy.c

index 4f17ce2f60a2b6242ac98baf146320419b46bd95..90609467e4ca40f735f8897fe9addbcc83d8d6f1 100644 (file)
@@ -560,6 +560,8 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
 
   infof (data, "Proxy replied OK to CONNECT request\n");
   data->req.ignorebody = FALSE; /* put it (back) to non-ignore state */
+  conn->bits.rewindaftersend = FALSE; /* make sure this isn't set for the
+                                         document request  */
   return CURLE_OK;
 }
 #endif /* CURL_DISABLE_PROXY */