fix redundant use of `Object#to_s` in interpolation
parent
230deb68dc
commit
cc6f42b796
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue