rails/rails — comment on commit 4a6f4b92ad2f48dc7906d223fe4708d36624bd50
File:  line 0
By aiwilliams:

I was working with some integration testing in Rails 3.1.1, invoking the ```post``` method on ActionDispatch::Integration::RequestHelpers, when I found that my headers were never making it to the endpoint under test. The method is declared as ```def post(path, parameters = nil, headers = nil)```, and the documentation for ```get``` declares:

+headers+: Additional HTTP headers to pass, as a Hash. The keys will
automatically be upcased, with the prefix 'HTTP_' added if needed.

I've traced the problem all the way back to this commit. That is, it's a problem only in that the documentation is not correct, and the ```headers``` are in fact the ```rack_environment``` in the actual ```process``` method.

Am I mistaken?