ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

fix: preserve HTTP headers with periods #87

Closed bethesque closed 3 years ago

bethesque commented 4 years ago

Thank you to the maintainers of this gem! It is a critical part of some open source software that I maintain.

This PR allows headers with periods to be recognised as valid HTTP headers and preserved in the extract_http_request_headers method. According to https://tools.ietf.org/html/rfc7230#section-3.2.6 it is valid for a header to contain a period.