1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/application/middleware
Yuki Nishijima 5226058163 Add the ability of returning arbitrary headers to ActionDispatch::Static
Now ActionDispatch::Static can accept HTTP headers so that developers
will have control of returning arbitrary headers like
'Access-Control-Allow-Origin' when a response is delivered. They can
be configured through `#config.public_file_server.headers`:

  config.public_file_server.headers = {
    "Cache-Control"               => "public, max-age=60",
    "Access-Control-Allow-Origin" => "http://rubyonrails.org"
  }

Also deprecate `config.static_cache_control` in favor of
`config.public_file_server.headers`.
2015-06-13 09:30:23 -07:00
..
cache_test.rb Don't need to account turbolinks cookies in get request. 2014-10-13 17:24:44 -03:00
cookies_test.rb
exceptions_test.rb Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
remote_ip_test.rb Refactor ActionDispatch::RemoteIp 2014-08-21 18:38:08 -07:00
sendfile_test.rb Merge pull request #18100 from chancancode/serve_static_files 2014-12-19 14:55:34 -08:00
session_test.rb Deprecate :nothing option for render method 2015-05-28 15:13:32 +03:00
static_test.rb Add the ability of returning arbitrary headers to ActionDispatch::Static 2015-06-13 09:30:23 -07:00