From a6e38b7cdeda78a87e09fd0ccaf9c860d34eafd8 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Thu, 29 Sep 2022 23:29:42 +0300 Subject: [PATCH] Fix writing payload to http --- http/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http.cpp b/http/http.cpp index 63819957..cefe1a47 100644 --- a/http/http.cpp +++ b/http/http.cpp @@ -514,7 +514,7 @@ bool HttpPayload::store_http(td::ChainBufferWriter &output, size_t max_size, Htt wrote = true; } } - if (chunks_.size() != 0) { + if (chunks_.size() != 0 || !parse_completed()) { return wrote; } if (!written_zero_chunk_) {