From 2fdd278c86ace13424f2eb7f2932dfef16c9b840 Mon Sep 17 00:00:00 2001 From: nahi Date: Sun, 3 Jul 2005 14:54:20 +0000 Subject: [PATCH] cosmetic. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpauth/basicauth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.")