mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
And the same thing for Basic
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user