lib/wbench/timings/app_server.rb in wbench-0.3.1 vs lib/wbench/timings/app_server.rb in wbench-0.3.2

- old
+ new

@@ -1,11 +1,12 @@ module WBench module Timings class AppServer def initialize(browser) uri = Addressable::URI.parse(browser.url) - @http = Net::HTTP.new(uri.host, uri.port) + @http = Net::HTTP.new(uri.host, uri.inferred_port) @http.use_ssl = uri.scheme == 'https' + @request = Net::HTTP::Get.new(uri.request_uri) end def result response = @http.request(@request)