Skip to content

Commit d1dd4a0

Browse files
committed
Add path and headers to request inspect method
1 parent 5f02f5d commit d1dd4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http/generic_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def initialize(m, reqbody, resbody, uri_or_path, initheader = nil)
6262
attr_reader :decode_content
6363

6464
def inspect
65-
"\#<#{self.class} #{@method}>"
65+
"\#<#{self.class} #{@method} path=#{@path.inspect} headers=#{to_hash.inspect}>"
6666
end
6767

6868
##

0 commit comments

Comments
 (0)