hjr3 / weldr

A HTTP 1.1 proxy written in Rust using tokio.
Apache License 2.0
217 stars 20 forks source link

Review RFC 7230 and disallow duplicate headers #52

Closed hjr3 closed 7 years ago

hjr3 commented 7 years ago

Per 3.2.2

A sender MUST NOT generate multiple header fields with the same field name in a message unless either the entire field value for that header field is defined as a comma-separated list [i.e., #(values)] or the header field is a well-known exception (as noted below).

Specifically, the content-length header should be disallowed. Headers like Cache-Control are allowed.

hjr3 commented 7 years ago

handling this in https://github.com/hjr3/alacrity/issues/55