mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Don't close the connection if we're in a known negotiation mode and we won't
send any data anyway. Probably the bug Tom Moers noticed.
This commit is contained in:
parent
f00f050d1b
commit
158588640a
@ -230,6 +230,11 @@ static CURLcode perhapsrewind(struct connectdata *conn)
|
||||
|
||||
bytessent = http->writebytecount;
|
||||
|
||||
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 {
|
||||
/* figure out how much data we are expected to send */
|
||||
switch(data->set.httpreq) {
|
||||
case HTTPREQ_POST:
|
||||
@ -246,6 +251,7 @@ static CURLcode perhapsrewind(struct connectdata *conn)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
conn->bits.rewindaftersend = FALSE; /* default */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user