1
0
Fork 0
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:
David Heinemeier Hansson 2007-05-08 06:09:14 +00:00
parent 20eb59ad8a
commit 388f504f6d

View file

@ -113,7 +113,7 @@ module ActionController
def authentication_request(controller, realm) def authentication_request(controller, realm)
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}") 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 return false
end end
end end