Skip to content

Commit b7a2e63

Browse files
committed
[rb] fix bug with unnecessary conversion
1 parent 24d629b commit b7a2e63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ 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}")
103+
WebDriver.logger.debug(" <<< #{response.instance_variable_get(:@header).inspect}")
105104
create_response response.code, response.body, response.content_type
106105
end
107106
end

0 commit comments

Comments
 (0)