Skip to content

Commit

Permalink
chore: remove redundance space lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jan 6, 2024
1 parent cad9553 commit 824563d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions viz-core/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -486,18 +485,15 @@ impl RequestLimitsExt for Request {
#[cfg(feature = "multipart")]
async fn multipart_with_limit(&mut self) -> Result<Multipart, PayloadError> {
let limit = self.limits().get(<Multipart as Payload>::NAME);

let m = <Multipart as Payload>::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,
Expand Down

0 comments on commit 824563d

Please sign in to comment.