projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c153de2
)
Don't set the Status header - it is set automatically by the FastCGI code
author
Tom Hughes
<tom@compton.nu>
Thu, 4 Jun 2009 22:53:05 +0000
(22:53 +0000)
committer
Tom Hughes
<tom@compton.nu>
Thu, 4 Jun 2009 22:53:05 +0000
(22:53 +0000)
and this manually set one conflicts with that and causes a 200 response
in rails 2.3.2 it seems.
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index d7debcb6d43ffb7e40c48e29f352fff930da9198..0d6cdea6424fea77b93e32e047796546008a1637 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-45,7
+45,6
@@
class ApplicationController < ActionController::Base
# handle authenticate pass/fail
unless @user
# no auth, the user does not exist or the password was wrong
- response.headers["Status"] = "Unauthorized"
response.headers["WWW-Authenticate"] = "Basic realm=\"#{realm}\""
render :text => errormessage, :status => :unauthorized
return false