mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Avoid exposure of type names by QueryRejection (#1171)
This commit is contained in:
@@ -68,7 +68,7 @@ where
|
||||
async fn from_request(req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
|
||||
let query = req.uri().query().unwrap_or_default();
|
||||
let value = serde_html_form::from_str(query)
|
||||
.map_err(FailedToDeserializeQueryString::__private_new::<T, _>)?;
|
||||
.map_err(FailedToDeserializeQueryString::__private_new)?;
|
||||
Ok(Query(value))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user