diff options
author | Joel Hayhurst <joel@hired.com> | 2015-03-11 11:31:14 -0700 |
---|---|---|
committer | Joel Hayhurst <joel@hired.com> | 2015-03-12 14:39:22 -0700 |
commit | d5efb1f9bdbd6c0392ea2c0aeaa3e61691683685 (patch) | |
tree | 431dbfc57526216c3c09d1713439b6de46b10293 /actionpack/lib | |
parent | 1b7ae86f262df7d15b57be3b4a4f38680ce37c64 (diff) | |
download | rails-d5efb1f9bdbd6c0392ea2c0aeaa3e61691683685.tar.gz rails-d5efb1f9bdbd6c0392ea2c0aeaa3e61691683685.tar.bz2 rails-d5efb1f9bdbd6c0392ea2c0aeaa3e61691683685.zip |
Return true from head method
It was returning false in normal circumstances.
This broke the `head :ok and return if` construct.
Add appropriate test.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/head.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/head.rb b/actionpack/lib/action_controller/metal/head.rb index 0d93e2f7aa..70f42bf565 100644 --- a/actionpack/lib/action_controller/metal/head.rb +++ b/actionpack/lib/action_controller/metal/head.rb @@ -38,6 +38,8 @@ module ActionController headers.delete('Content-Type') headers.delete('Content-Length') end + + true end private |