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

Headers work with nginx #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Apr 18, 2012

  1. Headers work with nginx

    This fixes a big problem with nginx. nginx does not send some headers if they have an underscore in them. Since this is a Rack middleware, all headers will be converted into HTTP_FOO_BAR. The original header may have been Foo-Bar or Foo_Bar. We may never know. Actually is a very annoying problem with rack because you can't access the original headers. So, we simply replace `_`'s with `-` and everything is cool. Most likely the `_`'s were `-`'s in the first place.
    Adam Hawkins committed Apr 18, 2012
    Configuration menu
    Copy the full SHA
    1ee4d46 View commit details
    Browse the repository at this point in the history