From 46e3c5ee4faf10cefe63c5513910ca55ebbd8db0 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Sat, 6 Jan 2024 13:51:48 +0800 Subject: [PATCH] chore: remove redundance space lines --- viz-core/src/request.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/viz-core/src/request.rs b/viz-core/src/request.rs index 35837973..c248842c 100644 --- a/viz-core/src/request.rs +++ b/viz-core/src/request.rs @@ -457,7 +457,6 @@ impl RequestLimitsExt for Request { let bytes = self .bytes_with(self.limits().get("text"), Limits::NORMAL) .await?; - String::from_utf8(bytes.to_vec()).map_err(PayloadError::Utf8) } @@ -486,18 +485,15 @@ impl RequestLimitsExt for Request { #[cfg(feature = "multipart")] async fn multipart_with_limit(&mut self) -> Result { let limit = self.limits().get(::NAME); - let m = ::check_header( self.content_type(), self.content_length(), limit, )?; - let boundary = m .get_param(mime::BOUNDARY) .ok_or(PayloadError::MissingBoundary)? .as_str(); - Ok(Multipart::with_limits( self.incoming()?, boundary,