fix spec reference

This commit is contained in:
Rob Ede 2021-11-18 17:23:17 +00:00
parent 87023d0783
commit 9281dcaaff
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }