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
I guess it is not the intended behavior.
Reproduction code is as follows.
# nginx server { listen 127.0.0.1:8888; location / { mruby_rewrite_handler_code ' headers = %w(abc=123 foo=bar) Nginx::Request.new.headers_out["Set-Cookies"] = headers Nginx.errlogger Nginx::LOG_ERR, headers Nginx::return headers.empty? ? Nginx::HTTP_INTERNAL_SERVER_ERROR : Nginx::OK '; } }
Request to the above server as below.
$ curl http://127.0.0.1:8888 -sv > /dev/null * Rebuilt URL to: http://127.0.0.1:8888/ * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.35.0 > Host: 127.0.0.1:8888 > Accept: */* > < HTTP/1.1 500 Internal Server Error * Server nginx is not blacklisted < Server: nginx < Date: Thu, 04 Feb 2016 11:40:12 GMT < Content-Type: text/html < Content-Length: 186 < Connection: close < Set-Cookies: foo=bar < Set-Cookies: abc=123 < { [data not shown] * Closing connection 0 root@node1:~#
and log
$ tail -1 /var/log/nginx/error.log 2016/02/04 11:40:12 [error] 11130#11130: *9 [], client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "127.0.0.1:8888"
I expected status 200, and the array with two item in the log, but the results are not.
For more details of nginx please refer https://gist.github.com/lamanotrama/638e97202cf54bfd9196
The text was updated successfully, but these errors were encountered:
Thank you for your report. I'll investigate it.
Sorry, something went wrong.
Merge pull request #156 from matsumoto-r/fix-bug-issue-155
5bff684
Fix bug; pop array object when adding into headers #155
Fixed via #156
💯 Thank you!!
No branches or pull requests
I guess it is not the intended behavior.
Reproduction code is as follows.
Request to the above server as below.
and log
I expected status 200, and the array with two item in the log, but the results are not.
Environment
For more details of nginx please refer https://gist.github.com/lamanotrama/638e97202cf54bfd9196
The text was updated successfully, but these errors were encountered: