mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Set content-length for responses to HEAD requests (#734)
* Set `content-length` internally in `Router` * changelog * require `B: HttpBody` at the `impl` * add changelog refs
This commit is contained in:
@@ -36,7 +36,7 @@ pub trait RouterExt<B>: sealed::Sealed {
|
||||
|
||||
impl<B> RouterExt<B> for Router<B>
|
||||
where
|
||||
B: Send + 'static,
|
||||
B: axum::body::HttpBody + Send + 'static,
|
||||
{
|
||||
fn with<T>(self, routes: T) -> Self
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user