actix-web/actix-web-actors
Sebastian Mayr 02b5dd121b Drop content length headers from 101 responses
After the refactor in 3901239128 101
responses started to be forced to emit `transfer-encoding: chunked`
headers. However, similarly to 100, 102 and 204, the HTTP standard says
101 MUST NOT contain either content-length or transfer-encoding.

This leads to incompatibilities in the ecosystem. While browsers just
ignore the header, envoy is unable to process responses like this.

This change goes a bit further than just restoring the old behaviour
and extends the skip_len flag to all of these status codes, meaning
even if they were user provided, they'll be ignored in the future to
better match the standard.

Reference: https://tools.ietf.org/html/rfc7230#section-3.3.1
2020-11-01 19:12:06 -05:00
..
src Drop content length headers from 101 responses 2020-11-01 19:12:06 -05:00
tests Check format and tweak CI config (#1619) 2020-07-22 00:28:33 +01:00
CHANGES.md Bump pin-project to 1.0 (#1733) 2020-10-25 19:41:44 +09:00
Cargo.toml Bump pin-project to 1.0 (#1733) 2020-10-25 19:41:44 +09:00
LICENSE-APACHE add license files 2019-06-01 17:25:29 +06:00
LICENSE-MIT add license files 2019-06-01 17:25:29 +06:00
README.md bump msrv in ci and readme 2020-05-13 01:57:37 +01:00

README.md

Actix actors support for actix web framework Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

Documentation & community resources