mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-23 00:00:15 +02:00
Remove the associated Body type on IntoResponse (#571)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
use axum::{
|
||||
async_trait,
|
||||
body::{Bytes, Full},
|
||||
body::BoxBody,
|
||||
extract::{FromRequest, Path, RequestParts},
|
||||
http::{Response, StatusCode},
|
||||
response::IntoResponse,
|
||||
@@ -51,7 +51,7 @@ impl<B> FromRequest<B> for Version
|
||||
where
|
||||
B: Send,
|
||||
{
|
||||
type Rejection = Response<Full<Bytes>>;
|
||||
type Rejection = Response<BoxBody>;
|
||||
|
||||
async fn from_request(req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
|
||||
let params = Path::<HashMap<String, String>>::from_request(req)
|
||||
|
||||
Reference in New Issue
Block a user