From d1dd4a049ef2b6ff976c6e25dc529ee4fca1282d Mon Sep 17 00:00:00 2001 From: Adam Daniels Date: Sat, 8 May 2021 12:48:20 -0400 Subject: [PATCH] Add path and headers to request inspect method --- lib/net/http/generic_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http/generic_request.rb b/lib/net/http/generic_request.rb index 0b812430..0187db3d 100644 --- a/lib/net/http/generic_request.rb +++ b/lib/net/http/generic_request.rb @@ -62,7 +62,7 @@ def initialize(m, reqbody, resbody, uri_or_path, initheader = nil) attr_reader :decode_content def inspect - "\#<#{self.class} #{@method}>" + "\#<#{self.class} #{@method} path=#{@path.inspect} headers=#{to_hash.inspect}>" end ##