diff options
Diffstat (limited to 'tdnet/td/net/HttpChunkedByteFlow.cpp')
| -rw-r--r-- | tdnet/td/net/HttpChunkedByteFlow.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tdnet/td/net/HttpChunkedByteFlow.cpp b/tdnet/td/net/HttpChunkedByteFlow.cpp index 5a4f823d1..cc8e533c3 100644 --- a/tdnet/td/net/HttpChunkedByteFlow.cpp +++ b/tdnet/td/net/HttpChunkedByteFlow.cpp @@ -51,14 +51,10 @@ bool HttpChunkedByteFlow::loop() { return false; } total_size_ += ready; - uncommitted_size_ += ready; output_.append(input_->cut_head(ready)); result = true; len_ -= ready; - if (uncommitted_size_ >= MIN_UPDATE_SIZE) { - uncommitted_size_ = 0; - } if (len_ == 0) { if (input_->size() < 2) { @@ -72,7 +68,6 @@ bool HttpChunkedByteFlow::loop() { return false; } state_ = State::ReadChunkLength; - len_ = 0; } } while (false); if (!is_input_active_ && !result) { |
