diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-02 23:38:39 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-02 23:39:42 +0200 |
commit | 83e35b9c08b97db7605542e69a8fa8d23c7df211 (patch) | |
tree | a1eca97d87276956008676e85f765f6b9baf29ce /actionpack/lib/action_dispatch | |
parent | 73c94ed97ab6639d06dade1738aa5b9f49294340 (diff) | |
download | rails-83e35b9c08b97db7605542e69a8fa8d23c7df211.tar.gz rails-83e35b9c08b97db7605542e69a8fa8d23c7df211.tar.bz2 rails-83e35b9c08b97db7605542e69a8fa8d23c7df211.zip |
Allow ignore_accept_header through configuration option.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/railtie.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/railtie.rb b/actionpack/lib/action_dispatch/railtie.rb index 0a3bd5fe40..f51cc3711b 100644 --- a/actionpack/lib/action_dispatch/railtie.rb +++ b/actionpack/lib/action_dispatch/railtie.rb @@ -9,10 +9,12 @@ module ActionDispatch config.action_dispatch.show_exceptions = true config.action_dispatch.best_standards_support = true config.action_dispatch.tld_length = 1 + config.action_dispatch.ignore_accept_header = false config.action_dispatch.rack_cache = {:metastore => "rails:/", :entitystore => "rails:/", :verbose => true} initializer "action_dispatch.configure" do |app| ActionDispatch::Http::URL.tld_length = app.config.action_dispatch.tld_length + ActionDispatch::Request.ignore_accept_header = app.config.action_dispatch.ignore_accept_header end end end |