mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
responses for some FTP servers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
daacec2b0e
commit
3306e785b5
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed May 30 13:24:33 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
|
||||
responses for some FTP servers.
|
||||
|
||||
Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval_cmd): just return if no exceptions.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue