mirror of https://github.com/fafhrd91/actix-web
fix spec reference
This commit is contained in:
parent
87023d0783
commit
9281dcaaff
|
@ -78,8 +78,8 @@ pub(crate) trait MessageType: Sized {
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusCode::NOT_MODIFIED => {
|
StatusCode::NOT_MODIFIED => {
|
||||||
// don't skip content-length header for not modified responses
|
// 304 responses should never have a body but should retain a manually set
|
||||||
// see https://datatracker.ietf.org/doc/html/rfc7232#section-4.1
|
// content-length header see https://tools.ietf.org/html/rfc7232#section-4.1
|
||||||
skip_len = false;
|
skip_len = false;
|
||||||
length = BodySize::None;
|
length = BodySize::None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue