diff options
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 9b231291af..2167a52895 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 |