summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-10 23:56:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-10 23:56:22 +0000
commitb7b903bbd0200dc368d1652802f8b8393ecf9df4 (patch)
treee35248a573d587fc74b9e612a27f7bcb08983ee9 /lib
parentf86b43b88c7ce541dbca55f3b6762766c45e4f10 (diff)
downloadruby-b7b903bbd0200dc368d1652802f8b8393ecf9df4.tar.gz
ruby-b7b903bbd0200dc368d1652802f8b8393ecf9df4.tar.xz
ruby-b7b903bbd0200dc368d1652802f8b8393ecf9df4.zip
* lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change
number of methods for the sake of compatibility. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/smtp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index a84b7ba15..8c50e28dd 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