Skip to content

Commit

Permalink
Send HTTP request correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 7, 2013
1 parent 14997ca commit f02935a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/http-benchmark.rb
Expand Up @@ -56,7 +56,7 @@ def process_requests
loop do
next if requests_queue.empty?
request = requests_queue.pop
Net::HTTP.new(request[:host], request[:port]) do |http|
Net::HTTP.new(request[:host], request[:port]).start do |http|
header = {
"user-agent" => "Ruby/#{RUBY_VERSION} Droonga::HttpBenchmark"
}
Expand Down

0 comments on commit f02935a

Please sign in to comment.