summaryrefslogtreecommitdiff
path: root/lib/webrick
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-04 14:51:22 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-04 14:51:22 +0000
commit151d11b5b12b0dc9222e93c8e1c668ccd15d931d (patch)
tree4088fe90e8877c2ac5394d36cf94571bd7ee902e /lib/webrick
parentc1596a80afc2841e9368c950c82ffbf44c6987e1 (diff)
* lib/webrick/httpauth/authenticator.rb
(WEBrick::HTTPAuth::Authenticator#check_scheme): auth-scheme must be treated as a case-insensitive token according to RFC 2617 section 1.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/httpauth/authenticator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpauth/authenticator.rb b/lib/webrick/httpauth/authenticator.rb
index fe2dbf4e0c..f90d1bf75b 100644
--- a/lib/webrick/httpauth/authenticator.rb
+++ b/lib/webrick/httpauth/authenticator.rb
@@ -42,7 +42,7 @@ module WEBrick
error("no credentials in the request.")
return nil
end
- unless match = /^#{@auth_scheme}\s+/.match(credentials)
+ unless match = /^#{@auth_scheme}\s+/i.match(credentials)
error("invalid scheme in %s.", credentials)
info("%s: %s", @request_field, credentials) if $DEBUG
return nil