From 1caf0e62967fff3ea377f10cb839be9021b19237 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 6 Sep 2021 20:13:32 +0300 Subject: [PATCH] Fix multipart/form-data reading. --- tdnet/td/net/HttpReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdnet/td/net/HttpReader.cpp b/tdnet/td/net/HttpReader.cpp index 163cd329b..2d2478b27 100644 --- a/tdnet/td/net/HttpReader.cpp +++ b/tdnet/td/net/HttpReader.cpp @@ -223,7 +223,7 @@ Result HttpReader::read_next(HttpQuery *query, bool can_be_slow) { return need_size; } case State::ReadMultipartFormData: { - if (!content_->empty()) { + if (!content_->empty() || flow_sink_.is_ready()) { TRY_RESULT(result, parse_multipart_form_data(can_be_slow)); if (result) { break;