update changelog

This commit is contained in:
Rob Ede 2021-11-18 16:40:54 +00:00
parent fd6e4a76f8
commit a71627e61e
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# Changes # Changes
## Unreleased - 2021-xx-xx ## Unreleased - 2021-xx-xx
* Fix 304 Not Modified responses to omit the Content-Length header, as per the spec. [#????] * Fix 304 Not Modified responses to omit the Content-Length header, as per the spec. [#2453]
[#????]: https://github.com/actix/actix-web/pull/???? [#2453]: https://github.com/actix/actix-web/pull/2453
## 0.6.0-beta.8 - 2021-10-20 ## 0.6.0-beta.8 - 2021-10-20

View File

@ -838,8 +838,8 @@ async fn test_not_modified_spec_h1() {
res.headers().get(&CL), res.headers().get(&CL),
Some(&header::HeaderValue::from_static("4")), Some(&header::HeaderValue::from_static("4")),
); );
// server does not prevent payload from being sent but clients will likely choose not to read it // server does not prevent payload from being sent but clients may choose not to read it
// TODO: this is probably a bug // TODO: this is probably a bug, especially since CL header can differ in length from the body
assert!(!srv.load_body(res).await.unwrap().is_empty()); assert!(!srv.load_body(res).await.unwrap().is_empty());
// TODO: add stream response tests // TODO: add stream response tests