Bump multer from v1.2.2 to v2.0.0

This commit is contained in:
Sunli 2021-06-07 14:07:53 +08:00
parent 577c7c5193
commit 1086d279c3
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ serde_json = "1.0.64"
thiserror = "1.0.24" thiserror = "1.0.24"
static_assertions = "1.1.0" static_assertions = "1.1.0"
http = "0.2.3" http = "0.2.3"
multer = "1.2.2" multer = "2.0.0"
tempfile = "3.2.0" tempfile = "3.2.0"
# Feature optional dependencies # Feature optional dependencies

View File

@ -43,7 +43,7 @@ pub(super) async fn receive_batch_multipart(
boundary: impl Into<String>, boundary: impl Into<String>,
opts: MultipartOptions, opts: MultipartOptions,
) -> Result<BatchRequest, ParseRequestError> { ) -> Result<BatchRequest, ParseRequestError> {
let mut multipart = Multipart::new_with_constraints( let mut multipart = Multipart::with_constraints(
ReaderStream::new(body), ReaderStream::new(body),
boundary, boundary,
Constraints::new().size_limit({ Constraints::new().size_limit({