Skip to content

Commit f93f138

Browse files
adam12hsbt
authored andcommitted
Add path and headers to request inspect method
1 parent 328d28d commit f93f138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http/generic_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def initialize(m, reqbody, resbody, uri_or_path, initheader = nil) # :nodoc:
9999
# Net::HTTP::Post.new(uri).inspect # => "#<Net::HTTP::Post POST>"
100100
#
101101
def inspect
102-
"\#<#{self.class} #{@method}>"
102+
"\#<#{self.class} #{@method} path=#{@path.inspect} headers=#{to_hash.inspect}>"
103103
end
104104

105105
##

0 commit comments

Comments
 (0)