From 1c499989ee1001e56d72d9b7dfce3641728db217 Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 26 Jul 2006 13:27:18 +0000 Subject: small document fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net/http.rb') 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 -- cgit v1.2.3