We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When there are multiple headers where one name contains the other (e.g. X-HOGE and X-HOGE-FUGA), Headers_in, Headers_out returns wrong value.
X-HOGE
X-HOGE-FUGA
Headers_in
Headers_out
server { listen 80; server_name localhost; location / { mruby_content_handler_code ' hin = Nginx::Headers_in.new Nginx.echo hin["X-HOGE"] Nginx.echo hin["X-HOGE-FUGA"] '; } }
$ curl -H "X-HOGE: hoge" -H "X-HOGE-FUGA: fuga" http://localhost:10080/index.html ["hoge", "fuga"] fuga
In the above example, Nginx.echo hin["X-HOGE"] is expected to return only hoge.
Nginx.echo hin["X-HOGE"]
hoge
The text was updated successfully, but these errors were encountered:
Fix Nginx::Headers_in[] returns wrong value. Fixed matsumotory#471.
14ed12d
Merge pull request #472 from yyamano/issue-471
f0b2ea3
Fix Nginx::Headers_in[] returns wrong value. Fixed #471.
Successfully merging a pull request may close this issue.
When there are multiple headers where one name contains the other (e.g.
X-HOGE
andX-HOGE-FUGA
),Headers_in
,Headers_out
returns wrong value.Reproduce
In the above example,
Nginx.echo hin["X-HOGE"]
is expected to return onlyhoge
.The text was updated successfully, but these errors were encountered: