And the same thing for Basic

This commit is contained in:
Yehuda Katz + Carl Lerche
2009-08-25 17:34:07 -07:00
parent 3a5269eba4
commit 5bc66f160d

View File

@@ -150,7 +150,8 @@ module ActionController
def authentication_request(controller, realm)
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
controller.__send__ :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
controller.response_body = "HTTP Basic: Access denied.\n"
controller.status = 401
end
end