1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

cosmetic.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2005-07-03 14:54:20 +00:00
parent 8345e6fdd3
commit 2fdd278c86

View file

@ -34,7 +34,7 @@ module WEBrick
unless basic_credentials = check_scheme(req) unless basic_credentials = check_scheme(req)
challenge(req, res) challenge(req, res)
end end
userid, password = basic_credentials.unpack("m*")[0].split(":", 2) userid, password = basic_credentials.unpack("m*")[0].split(":", 2)
password ||= "" password ||= ""
if userid.empty? if userid.empty?
error("user id was not given.") error("user id was not given.")