diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 13:49:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 13:49:07 +0000 |
commit | 188e9667dc10a922a827bcf3cfe9f62aec0bcc5c (patch) | |
tree | ba8637504da3f2409090eba70c93b0f4fbc0e3e0 /lib/open-uri.rb | |
parent | c35f659524131bfd04be93d1cd9e4508f687ec8c (diff) |
* lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
the URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r-- | lib/open-uri.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 2a6c544fe6..4daec25c01 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -800,7 +800,8 @@ module URI end # The access sequence is defined by RFC 1738 - ftp = Net::FTP.open(self.host) + ftp = Net::FTP.new + ftp.connect(self.host, self.port) ftp.passive = true if !options[:ftp_active_mode] # todo: extract user/passwd from .netrc. user = 'anonymous' |