Skip to content

Commit

Permalink
Update axum-core/src/extract/request_parts.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored Feb 22, 2024
1 parent ab2b9e7 commit 4493713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum-core/src/extract/request_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ where
async fn from_request(req: Request, _: &S) -> Result<Self, Self::Rejection> {
let mut body = req.into_limited_body();

// If there's only 1 chunk, we can just return Buf::to_bytes()
// If there's only 1 chunk, we can just return it as-is
let first_chunk = if let Some(frame) = body
.frame()
.await
Expand Down

0 comments on commit 4493713

Please sign in to comment.