http_perhapsrewind: don't abort CONNECT requests
...they never have a body
This commit is contained in:

committed by
Daniel Stenberg

parent
87c4abb611
commit
576ac00eb3
@@ -468,10 +468,15 @@ static CURLcode http_perhapsrewind(struct connectdata *conn)
|
|||||||
|
|
||||||
bytessent = http->writebytecount;
|
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
|
/* This is a state where we are known to be negotiating and we don't send
|
||||||
any data then. */
|
any data then. */
|
||||||
expectsend = 0;
|
expectsend = 0;
|
||||||
|
}
|
||||||
|
else if(!conn->bits.protoconnstart) {
|
||||||
|
/* HTTP CONNECT in progress: there is no body */
|
||||||
|
expectsend = 0;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
/* figure out how much data we are expected to send */
|
/* figure out how much data we are expected to send */
|
||||||
switch(data->set.httpreq) {
|
switch(data->set.httpreq) {
|
||||||
|
Reference in New Issue
Block a user