mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rendering is protected
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
20eb59ad8a
commit
388f504f6d
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ module ActionController
|
|||
|
||||
def authentication_request(controller, realm)
|
||||
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
|
||||
controller.render :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
|
||||
controller.send :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue