aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-02-10 13:18:13 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-10 13:18:13 -0600
commit5689e681e9ec5824de6bc2b667b5bee3920bf91f (patch)
treee9ead37e53d83fa971a731ab72c17e1d84f7c123 /actionpack/lib/action_controller/vendor/rack-1.0/rack/auth
parentf400209084fabb00e18c3325e1933f4543fce94c (diff)
downloadrails-5689e681e9ec5824de6bc2b667b5bee3920bf91f.tar.gz
rails-5689e681e9ec5824de6bc2b667b5bee3920bf91f.tar.bz2
rails-5689e681e9ec5824de6bc2b667b5bee3920bf91f.zip
Update vendored rack
Diffstat (limited to 'actionpack/lib/action_controller/vendor/rack-1.0/rack/auth')
-rw-r--r--actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb b/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb
index b213eac6f4..8489c9b9c4 100644
--- a/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb
+++ b/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb
@@ -16,11 +16,20 @@ module Rack
private
def unauthorized(www_authenticate = challenge)
- return [ 401, { 'WWW-Authenticate' => www_authenticate.to_s }, [] ]
+ return [ 401,
+ { 'Content-Type' => 'text/plain',
+ 'Content-Length' => '0',
+ 'WWW-Authenticate' => www_authenticate.to_s },
+ []
+ ]
end
def bad_request
- [ 400, {}, [] ]
+ return [ 400,
+ { 'Content-Type' => 'text/plain',
+ 'Content-Length' => '0' },
+ []
+ ]
end
end