From d5efb1f9bdbd6c0392ea2c0aeaa3e61691683685 Mon Sep 17 00:00:00 2001 From: Joel Hayhurst Date: Wed, 11 Mar 2015 11:31:14 -0700 Subject: Return true from head method It was returning false in normal circumstances. This broke the `head :ok and return if` construct. Add appropriate test. --- actionpack/lib/action_controller/metal/head.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller/metal') 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 -- cgit v1.2.3