aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/middlewares.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-02-01 01:01:49 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-01 01:01:49 -0600
commit5b5d0e325d9b031638c0cebb128f2acc3dd764c4 (patch)
treee28e19927699eb1d9d0e35a4cbdf8dd9e927eb81 /actionpack/lib/action_controller/middlewares.rb
parent63b4fe53abec586e122cde629adde5000a517f9c (diff)
downloadrails-5b5d0e325d9b031638c0cebb128f2acc3dd764c4.tar.gz
rails-5b5d0e325d9b031638c0cebb128f2acc3dd764c4.tar.bz2
rails-5b5d0e325d9b031638c0cebb128f2acc3dd764c4.zip
Use Rack::Head middleware to ensure the body is discarded for HEAD requests
Diffstat (limited to 'actionpack/lib/action_controller/middlewares.rb')
-rw-r--r--actionpack/lib/action_controller/middlewares.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/middlewares.rb b/actionpack/lib/action_controller/middlewares.rb
index f9cfc2b18e..8ea1b5c7ce 100644
--- a/actionpack/lib/action_controller/middlewares.rb
+++ b/actionpack/lib/action_controller/middlewares.rb
@@ -19,3 +19,4 @@ end
use "ActionController::RewindableInput"
use "ActionController::ParamsParser"
use "Rack::MethodOverride"
+use "Rack::Head"