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/metal
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
..
basic_implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
conditional_get.rb ConditionalGet needs time core_ext 2019-08-02 01:12:36 -04:00
content_security_policy.rb Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
cookies.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
data_streaming.rb [ActionController] Fix send_file example for 404 2019-07-19 14:39:48 +09:00
default_headers.rb Include default headers by default in API mode 2018-04-06 15:13:28 -04:00
etag_with_flash.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
etag_with_template_digest.rb Pass the template format to the digestor 2019-02-15 17:27:33 -08:00
exceptions.rb Remove locale key for to_sentence 2019-08-27 14:53:17 -04:00
feature_policy.rb Use reserved domain for example configuration 2019-07-15 08:16:51 +10:00
flash.rb Ensure external redirects are explicitly allowed 2019-01-17 13:28:14 -05:00
force_ssl.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
head.rb Reduce method invocations and object allocations in head() 2019-07-31 17:41:34 +09:00
helpers.rb Update small typo in documentation. 2019-03-12 11:52:09 -04:00
http_authentication.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
implicit_render.rb Remove args from default_render 2019-01-17 14:33:14 -08:00
instrumentation.rb Reduce block execution 2019-07-31 17:41:34 +09:00
live.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
mime_responds.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
parameter_encoding.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
params_wrapper.rb Reduce Array assignment by not giving a name for unused *args 2019-07-31 17:41:34 +09:00
redirecting.rb Revert ensure external redirects are explicitly allowed 2019-01-22 11:40:13 -05:00
renderers.rb Use media_type instead of content_type internally 2019-08-04 00:35:49 +01:00
rendering.rb Do not set response "Vary" header if it has already been set 2019-09-03 11:54:40 -04:00
request_forgery_protection.rb Use media_type instead of content_type internally 2019-08-04 00:35:49 +01:00
rescue.rb Reduce Array assignment by not giving a name for unused *args 2019-07-31 17:41:34 +09:00
streaming.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
strong_parameters.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
testing.rb Remove unused before_filters 2017-10-15 16:05:41 +09:00
url_for.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00