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