diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-04 14:51:22 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-04 14:51:22 +0000 |
commit | e54f12b8d237fd6706b48af8b3f99a17ccfb1481 (patch) | |
tree | 4088fe90e8877c2ac5394d36cf94571bd7ee902e /lib/webrick | |
parent | e62d597b8553d3331c592c434dd9bd1b0815ac23 (diff) | |
download | ruby-e54f12b8d237fd6706b48af8b3f99a17ccfb1481.tar.gz ruby-e54f12b8d237fd6706b48af8b3f99a17ccfb1481.tar.xz ruby-e54f12b8d237fd6706b48af8b3f99a17ccfb1481.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@12692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r-- | lib/webrick/httpauth/authenticator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpauth/authenticator.rb b/lib/webrick/httpauth/authenticator.rb index fe2dbf4e0..f90d1bf75 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 |