-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Default headers, removed in controller actions, will not be reapplied to the test response #18423
Conversation
… to the test response.
@jone thank you 💛 |
Default headers, removed in controller actions, will not be reapplied to the test response
Default headers, removed in controller actions, will not be reapplied to the test response Conflicts: actionpack/CHANGELOG.md
Default headers, removed in controller actions, will not be reapplied to the test response Conflicts: actionpack/CHANGELOG.md
This assumes that a |
@jeremy you're right, that was the assumption. I see this is not the case for controller tests. I'll write tests to show the introduced bug and move the patch into a new subclass only used for integration tests. Thank you for pointing this out. |
@42001983 to stop getting these emails you have to unwatch the Rails repository on GitHub. |
After rails#18423 default headers were no longer assigned to any test response. That fix should be constrained to the response used during integration tests.
Fixed by optionally merging the default headers rather than disabling the merge. Added a regression test for functional tests to demonstrate (thanks @senny!) |
Default headers, removed in controller actions, were reapplied to the test response, although it works perfectly in production.
This change disables merging headers with the default headers a second time in the test response.
/cc @senny