aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-07-23 13:50:48 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2012-07-23 14:34:13 -0300
commit449039a86d802871b707dfb51ac1ed96d53526f9 (patch)
treec700ec596a2cb57400383adb1005723a2182a374 /actionpack/lib/action_dispatch/middleware
parent998189abde4caee6f325c273afe2d1dc562ad805 (diff)
downloadrails-449039a86d802871b707dfb51ac1ed96d53526f9.tar.gz
rails-449039a86d802871b707dfb51ac1ed96d53526f9.tar.bz2
rails-449039a86d802871b707dfb51ac1ed96d53526f9.zip
Remove ActionDispatch::Head middleware in favor of Rack::Head
Closes #7110 there's more work to do on rack-cache issue 69
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r--actionpack/lib/action_dispatch/middleware/head.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/head.rb b/actionpack/lib/action_dispatch/middleware/head.rb
deleted file mode 100644
index f1906a3ab3..0000000000
--- a/actionpack/lib/action_dispatch/middleware/head.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-module ActionDispatch
- class Head
- def initialize(app)
- @app = app
- end
-
- def call(env)
- if env["REQUEST_METHOD"] == "HEAD"
- env["REQUEST_METHOD"] = "GET"
- env["rack.methodoverride.original_method"] = "HEAD"
- status, headers, _ = @app.call(env)
- [status, headers, []]
- else
- @app.call(env)
- end
- end
- end
-end