Skip to content

Commit

Permalink
[rb] log header information on http response
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 15, 2023
1 parent 796235d commit 24d629b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/remote/http/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def request(verb, url, headers, payload, redirects = 0)

request(:get, URI.parse(response['Location']), DEFAULT_HEADERS.dup, nil, redirects + 1)
else
header = response.instance_variable_get(:@header).to_yaml
WebDriver.logger.debug(" <<< #{header.inspect}")
create_response response.code, response.body, response.content_type
end
end
Expand Down

0 comments on commit 24d629b

Please sign in to comment.