summary refs log tree commit
path: root/lib/rack/auth/abstract/handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/auth/abstract/handler.rb')
-rw-r--r--lib/rack/auth/abstract/handler.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rack/auth/abstract/handler.rb b/lib/rack/auth/abstract/handler.rb
index 214df629..c657691e 100644
--- a/lib/rack/auth/abstract/handler.rb
+++ b/lib/rack/auth/abstract/handler.rb
@@ -17,8 +17,8 @@ module Rack
 
       def unauthorized(www_authenticate = challenge)
         return [ 401,
-          { 'Content-Type' => 'text/plain',
-            'Content-Length' => '0',
+          { CONTENT_TYPE => 'text/plain',
+            CONTENT_LENGTH => '0',
             'WWW-Authenticate' => www_authenticate.to_s },
           []
         ]
@@ -26,8 +26,8 @@ module Rack
 
       def bad_request
         return [ 400,
-          { 'Content-Type' => 'text/plain',
-            'Content-Length' => '0' },
+          { CONTENT_TYPE => 'text/plain',
+            CONTENT_LENGTH => '0' },
           []
         ]
       end