diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-23 13:50:48 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-23 14:34:13 -0300 |
commit | 449039a86d802871b707dfb51ac1ed96d53526f9 (patch) | |
tree | c700ec596a2cb57400383adb1005723a2182a374 /actionpack/lib/action_dispatch/http/request.rb | |
parent | 998189abde4caee6f325c273afe2d1dc562ad805 (diff) | |
download | rails-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/http/request.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 8cea17c7a6..1377e53ce8 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -119,9 +119,9 @@ module ActionDispatch end # Is this a HEAD request? - # Equivalent to <tt>request.method_symbol == :head</tt>. + # Equivalent to <tt>request.request_method_symbol == :head</tt>. def head? - HTTP_METHOD_LOOKUP[method] == :head + HTTP_METHOD_LOOKUP[request_method] == :head end # Provides access to the request's HTTP headers, for example: |