Skip to content

Commit 24d629b

Browse files
committed
[rb] log header information on http response
1 parent 796235d commit 24d629b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rb/lib/selenium/webdriver/remote/http/default.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def request(verb, url, headers, payload, redirects = 0)
100100

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

0 commit comments

Comments
 (0)