Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple http headers with the same name in both directions #2

Closed
3 tasks done
simonmittag opened this issue Apr 20, 2020 · 0 comments
Closed
3 tasks done
Assignees
Labels
enhancement New feature or request
Projects

Comments

@simonmittag
Copy link
Owner

simonmittag commented Apr 20, 2020

RFC2616, Section 4.2: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that header field is defined as a comma-separated list [i.e., #(values)]. It MUST be possible to combine the multiple header fields into one "field-name: field-value" pair, without changing the semantics of the message, by appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is therefore significant to the interpretation of the combined field value, and thus a proxy MUST NOT change the order of these field values when a message is forwarded.

  • rewrite downstream -> upstream with multiple headers, comma separated, in order.
  • rewrite upstream -> downstream with multiple headers, comma separated, in order.
  • exclude Content-Length from rewrite in both directions, but set it explicitly.
@simonmittag simonmittag added the enhancement New feature or request label Apr 20, 2020
@simonmittag simonmittag self-assigned this Apr 20, 2020
@simonmittag simonmittag added this to To do in Kanban via automation May 17, 2020
@simonmittag simonmittag moved this from To do to Awaiting triage in Kanban May 17, 2020
@simonmittag simonmittag moved this from Awaiting triage to To do in Kanban May 17, 2020
@simonmittag simonmittag moved this from To do to In progress in Kanban Sep 24, 2020
Kanban automation moved this from In progress to Done Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Kanban
  
Done
Development

No branches or pull requests

1 participant