Sha256: 5f7d36c26b8d44601ef01ba20dc62006e30ae95c12fea1261ed51a27195d6a23

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

module Watir
  class HttpClient < Selenium::WebDriver::Remote::Http::Default
    def request(verb, url, headers, payload, redirects = 0)
      headers['User-Agent'] = "#{headers['User-Agent']} watir/#{Watir::VERSION}"

      super(verb, url, headers, payload, redirects)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/http_client.rb
watir-7.0.0 lib/watir/http_client.rb
watir-7.0.0.beta5 lib/watir/http_client.rb
watir-7.0.0.beta4 lib/watir/http_client.rb
watir-7.0.0.beta3 lib/watir/http_client.rb
watir-7.0.0.beta2 lib/watir/http_client.rb
watir-7.0.0.beta1 lib/watir/http_client.rb