diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-05 23:52:41 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-06 08:15:35 +0100 |
commit | 6f17df7a6afcc600d96fb02d125aa2932540eff1 (patch) | |
tree | f162292577170fee5966c0dd0f5d78620795d08f /lib/transfer.c | |
parent | 8aa04e9a24932b830bc5eaf6838dea5a3329341e (diff) | |
download | curl-6f17df7a6afcc600d96fb02d125aa2932540eff1.tar.gz |
urldata: remove the 'stream_was_rewound' connectdata struct member
... as it is never set anywhere.
Follow-up to 2f44e94ef
Closes #5046
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index ead8b36db..f015b9120 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -890,7 +890,7 @@ static CURLcode readwrite_data(struct Curl_easy *data, } /* if(!header and data to read) */ - if(conn->handler->readwrite && excess && !conn->bits.stream_was_rewound) { + if(conn->handler->readwrite && excess) { /* Parse the excess data */ k->str += nread; @@ -1234,9 +1234,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, /* We go ahead and do a read if we have a readable socket or if the stream was rewound (in which case we have data in a buffer) */ - if((k->keepon & KEEP_RECV) && - ((select_res & CURL_CSELECT_IN) || conn->bits.stream_was_rewound)) { - + if((k->keepon & KEEP_RECV) && (select_res & CURL_CSELECT_IN)) { result = readwrite_data(data, conn, k, &didwhat, done, comeback); if(result || *done) return result; |