From 3cb592b67911ecaa427607434eea153526ac984e Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Mon, 4 Nov 2024 16:07:34 +0800 Subject: [PATCH] fix: `Request::try_all_files` is not work correctly (#970) --- crates/core/src/http/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/http/request.rs b/crates/core/src/http/request.rs index f2519803b..663c8b1dd 100644 --- a/crates/core/src/http/request.rs +++ b/crates/core/src/http/request.rs @@ -829,7 +829,7 @@ impl Request { pub async fn try_all_files(&mut self) -> ParseResult> { self.form_data() .await - .map(|ps| ps.files.iter().map(|(_, f)| f).collect()) + .map(|ps| ps.files.flat_iter().map(|(_, f)| f).collect()) } /// Get request payload with default max size limit(64KB).