fix redundant use of `Object#to_s` in interpolation

master
Anton Maminov 2022-11-04 14:34:42 +02:00
parent 230deb68dc
commit cc6f42b796
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class Mechanize
redirect_url = response.headers["location"]
uri = resolve_url(redirect_url, referer)
Log.debug { "follow redirect to: #{uri.to_s}" }
Log.debug { "follow redirect to: #{uri}" }
# Make sure we are not copying over the POST headers from the original request
headers.delete("Content-MD5")
@ -327,7 +327,7 @@ class Mechanize
end
private def request_log(uri, method)
Log.debug { "#{method.to_s.upcase}: #{uri.to_s}" }
Log.debug { "#{method.to_s.upcase}: #{uri}" }
request_headers.each do |key, values|
value = values.size == 1 ? values.first : values