aboutsummaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorOliver Schindler <schindlo37@gmail.com>2013-03-18 22:40:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-03-18 22:53:40 +0100
commitd1d0ee075f3da05771399d0c05eb7ea9e01c5ec3 (patch)
treef596f93a1b46ca102fd1d006c8aa5471db7fc66a /lib/http_proxy.c
parent90110a9be0d55a870c665aa913b97fb620657262 (diff)
Curl_proxyCONNECT: clear 'rewindaftersend' on success
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
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 4f17ce2f6..90609467e 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -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 */