From 1086d279c3a3ce740951355863c35cef889cafc9 Mon Sep 17 00:00:00 2001 From: Sunli Date: Mon, 7 Jun 2021 14:07:53 +0800 Subject: [PATCH] Bump multer from `v1.2.2` to `v2.0.0` --- Cargo.toml | 2 +- src/http/multipart.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b5409179..95141c1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ serde_json = "1.0.64" thiserror = "1.0.24" static_assertions = "1.1.0" http = "0.2.3" -multer = "1.2.2" +multer = "2.0.0" tempfile = "3.2.0" # Feature optional dependencies diff --git a/src/http/multipart.rs b/src/http/multipart.rs index 67f3b1b3..ded7d8de 100644 --- a/src/http/multipart.rs +++ b/src/http/multipart.rs @@ -43,7 +43,7 @@ pub(super) async fn receive_batch_multipart( boundary: impl Into, opts: MultipartOptions, ) -> Result { - let mut multipart = Multipart::new_with_constraints( + let mut multipart = Multipart::with_constraints( ReaderStream::new(body), boundary, Constraints::new().size_limit({