1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Cliff Pruitt 89c62a7bdb Do not set response "Vary" header if it has already been set
If an app sets the `"Vary"` header in an action to a value other than `"Accept"`, the `_set_vary_header` method will reset it's value to `"Accept"`.

This commit checks the header to be sure that it does not already have a value before setting the header to `"Accept"`.
2019-09-03 11:54:40 -04:00
..
abstract Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Do not set response "Vary" header if it has already been set 2019-09-03 11:54:40 -04:00
dispatch Passing in a Hash instance as non-kwargs parameters has to be braced in Ruby 3.0 syntax 2019-09-03 18:12:23 +09:00
fixtures Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
journey Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
lib/controller Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
abstract_unit.rb Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00