Permalink
Browse files

HTTP Auth should not depend on RenderingController

  • Loading branch information...
1 parent 303f9b8 commit 3a5269eba434b56cca2688218b7687bd7c1bc53c Yehuda Katz + Carl Lerche committed Aug 26, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_controller/metal/http_authentication.rb
@@ -243,7 +243,8 @@ def authentication_header(controller, realm)
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.

0 comments on commit 3a5269e

Please sign in to comment.