diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-03 14:54:20 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-03 14:54:20 +0000 |
commit | 2fdd278c86ace13424f2eb7f2932dfef16c9b840 (patch) | |
tree | 4ea4a216cf7596bda2e24f4cab4d2f9e2e3c85a9 /lib | |
parent | 8345e6fdd3d30d3779663fda2e8cc89e11907ec4 (diff) | |
download | ruby-2fdd278c86ace13424f2eb7f2932dfef16c9b840.tar.gz |
cosmetic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/httpauth/basicauth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpauth/basicauth.rb b/lib/webrick/httpauth/basicauth.rb index e835361dc2..210fb00bbe 100644 --- a/lib/webrick/httpauth/basicauth.rb +++ b/lib/webrick/httpauth/basicauth.rb @@ -34,7 +34,7 @@ module WEBrick unless basic_credentials = check_scheme(req) challenge(req, res) end - userid, password = basic_credentials.unpack("m*")[0].split(":", 2) + userid, password = basic_credentials.unpack("m*")[0].split(":", 2) password ||= "" if userid.empty? error("user id was not given.") |