diff options
author | Stefan Bühler <buehler@teamviewer.com> | 2014-11-24 10:42:01 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-04 14:46:31 -0800 |
commit | 576ac00eb396dd7fb2d12d0fe4b6fdeeba5071e6 (patch) | |
tree | 71561305235d032a15017205d1fe2d83ca72f224 /lib | |
parent | 87c4abb611c2b7038edc27c08b001d577eb14bd9 (diff) |
http_perhapsrewind: don't abort CONNECT requests
...they never have a body
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index c56689893..ee0a9a481 100644 --- a/lib/http.c +++ b/lib/http.c @@ -468,10 +468,15 @@ static CURLcode http_perhapsrewind(struct connectdata *conn) bytessent = http->writebytecount; - if(conn->bits.authneg) + if(conn->bits.authneg) { /* This is a state where we are known to be negotiating and we don't send any data then. */ expectsend = 0; + } + else if(!conn->bits.protoconnstart) { + /* HTTP CONNECT in progress: there is no body */ + expectsend = 0; + } else { /* figure out how much data we are expected to send */ switch(data->set.httpreq) { |