diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-30 04:25:32 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-30 04:25:32 +0000 |
commit | 4c53c0ae536672f461554ecde113373f614e51fe (patch) | |
tree | 2e3842f0f75e8ad275cc23feaa2b2e561be5dc36 /lib/net | |
parent | 9b653b820ceed7c79ff465ada722c9b28a49b089 (diff) | |
download | ruby-4c53c0ae536672f461554ecde113373f614e51fe.tar.gz ruby-4c53c0ae536672f461554ecde113373f614e51fe.tar.xz ruby-4c53c0ae536672f461554ecde113373f614e51fe.zip |
* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
responses for some FTP servers.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/ftp.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 9b231291a..2167a5289 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -340,6 +340,8 @@ module Net end end resp = sendcmd(cmd) + # skip 2XX for some ftp servers + resp = getresp if resp[0] == ?2 if resp[0] != ?1 raise FTPReplyError, resp end @@ -352,6 +354,8 @@ module Net end end resp = sendcmd(cmd) + # skip 2XX for some ftp servers + resp = getresp if resp[0] == ?2 if resp[0] != ?1 raise FTPReplyError, resp end |