1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller
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
..
api
metal Do not set response "Vary" header if it has already been set 2019-09-03 11:54:40 -04:00
railties
api.rb
base.rb
caching.rb
form_builder.rb
log_subscriber.rb additions here never will be empty 2019-08-18 23:58:13 +09:00
metal.rb
railtie.rb
renderer.rb Reduce Hash object creation when normalizing request env 2019-07-31 11:51:59 +09:00
template_assertions.rb
test_case.rb