Skip to content

Commit

Permalink
fix: Request::try_all_files is not work correctly (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn authored Nov 4, 2024
1 parent 4e269a5 commit 3cb592b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ impl Request {
pub async fn try_all_files(&mut self) -> ParseResult<Vec<&FilePart>> {
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).
Expand Down

0 comments on commit 3cb592b

Please sign in to comment.