diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-06-26 12:06:50 -0700 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-06-26 12:06:50 -0700 |
commit | d38d747b8cd29df580ad76c8133bb25efb744532 (patch) | |
tree | ad5f8c0949b486a8ddab7ca8b89589bb51ac8e17 | |
parent | 411aee219e14fe3d942699f230f7a8e3ed70bfe0 (diff) | |
parent | 9452a2e5fffd35be383250ada139b349a5866acb (diff) |
Merge branch 'release/0.12' into wdtk
-rw-r--r-- | config/application.rb | 5 | ||||
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/config/application.rb b/config/application.rb index 8bfec7f4b..92fd30685 100644 --- a/config/application.rb +++ b/config/application.rb @@ -71,10 +71,5 @@ module Alaveteli # Insert a bit of middleware code to prevent uneeded cookie setting. require "#{Rails.root}/lib/whatdotheyknow/strip_empty_sessions" config.middleware.insert_before ActionDispatch::Session::CookieStore, WhatDoTheyKnow::StripEmptySessions, :key => '_wdtk_cookie_session', :path => "/", :httponly => true - - # Ignore ACCEPT headers as a specification of format, only pay attention to - # formats specified in URLs - config.action_dispatch.ignore_accept_header = true - end end diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb index 61d847cec..0eda73c51 100644 --- a/spec/controllers/general_controller_spec.rb +++ b/spec/controllers/general_controller_spec.rb @@ -349,10 +349,4 @@ describe GeneralController, 'when using xapian search' do response.body.should include('Track this search') end - it 'should ignore an odd ACCEPTS header' do - request.env['HTTP_ACCEPT'] = '*/*;q=0.01' - get :search, :combined => '"fancy dog"' - response.should be_success - end - end |