Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make headers all lowercase in rack middleware (#328)
* Make headers all lowercase in rack middleware Rack v3 incorporated rack/rack#1592; using MessageBus with Rack still seems to work, but error messages like this appear in the server logs when requests come in: ``` rack_1 | Rack::Lint::LintError: uppercase character in header name: Content-Type rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/lint.rb:653:in `block in check_headers' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/lint.rb:637:in `each' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/lint.rb:637:in `check_headers' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/lint.rb:73:in `response' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/lint.rb:35:in `call' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/show_exceptions.rb:27:in `call' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/common_logger.rb:43:in `call' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/chunked.rb:102:in `call' rack_1 | /usr/local/bundle/gems/rack-3.0.4.1/lib/rack/content_length.rb:20:in `call' rack_1 | /usr/local/bundle/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:634:in `process_client' rack_1 | /usr/local/bundle/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:739:in `worker_loop' rack_1 | /usr/local/bundle/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:547:in `spawn_missing_workers' rack_1 | /usr/local/bundle/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:143:in `start' rack_1 | /usr/local/bundle/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>' rack_1 | /usr/local/bundle/bin/unicorn:25:in `load' rack_1 | /usr/local/bundle/bin/unicorn:25:in `<main>' ``` * Update CHANGELOG Co-authored-by: Ben Langfeld <ben@langfeld.me> --------- Co-authored-by: Ben Langfeld <ben@langfeld.me>
- Loading branch information