diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-08-25 17:29:48 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-08-25 17:29:48 -0700 |
commit | 3a5269eba434b56cca2688218b7687bd7c1bc53c (patch) | |
tree | 6b37fcbc02703c01e1fd02afe74f5d18803877b0 /actionpack | |
parent | 303f9b8841b1f12ddd7bbc9c6b2e010eafd8e551 (diff) | |
download | rails-3a5269eba434b56cca2688218b7687bd7c1bc53c.tar.gz rails-3a5269eba434b56cca2688218b7687bd7c1bc53c.tar.bz2 rails-3a5269eba434b56cca2688218b7687bd7c1bc53c.zip |
HTTP Auth should not depend on RenderingController
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index e33882cc1b..473fa164a6 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -243,7 +243,8 @@ module ActionController def authentication_request(controller, realm, message = nil) message ||= "HTTP Digest: Access denied.\n" authentication_header(controller, realm) - controller.__send__ :render, :text => message, :status => :unauthorized + controller.response_body = message + controller.status = 401 end # Uses an MD5 digest based on time to generate a value to be used only once. |