diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-26 13:27:18 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-26 13:27:18 +0000 |
commit | 2c4fdb6de51ff76eb75c92c61bdf258d67517ee1 (patch) | |
tree | e22a629b1b1f850b6858930b700c07b1ccea827c | |
parent | 30d022ee4e17f9a50af63da12cae401640e29906 (diff) | |
download | ruby-2c4fdb6de51ff76eb75c92c61bdf258d67517ee1.tar.gz ruby-2c4fdb6de51ff76eb75c92c61bdf258d67517ee1.tar.xz ruby-2c4fdb6de51ff76eb75c92c61bdf258d67517ee1.zip |
small document fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 968ea497b..46d95b27b 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -99,7 +99,7 @@ module Net #:nodoc: # req = Net::HTTP::Post.new(url.path) # req.basic_auth 'jack', 'pass' # req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';') - # res = Net::HTTP.new(url.host, url.port).start { http.request(req) } + # res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) } # case res # when Net::HTTPSuccess, Net::HTTPRedirection # # OK |