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 | 1c499989ee1001e56d72d9b7dfce3641728db217 (patch) | |
tree | e22a629b1b1f850b6858930b700c07b1ccea827c | |
parent | 429c03eb2a95fe7e9cd74ef4acf94e3765693e4e (diff) | |
download | ruby-1c499989ee1001e56d72d9b7dfce3641728db217.tar.gz |
small document fix
git-svn-id: svn+ssh://ci.ruby-lang.org/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 968ea497b5..46d95b27b4 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 |