From 0fa6bb37c6113b93ec3f255d766f5ff50b396b68 Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 10 May 2009 23:56:22 +0000 Subject: * lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change number of methods for the sake of compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index a84b7ba154..8c50e28dd0 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -769,7 +769,7 @@ module Net "auth_#{type.to_s.downcase}".intern end - def check_auth_args(user, secret) + def check_auth_args(user, secret, authtype = DEFAULT_AUTH_TYPE) unless user raise ArgumentError, 'SMTP-AUTH requested but missing user name' end -- cgit v1.2.3