Skip to content

Commit

Permalink
Add path and headers to request inspect method
Browse files Browse the repository at this point in the history
  • Loading branch information
adam12 authored and hsbt committed Aug 31, 2023
1 parent 328d28d commit f93f138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http/generic_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def initialize(m, reqbody, resbody, uri_or_path, initheader = nil) # :nodoc:
# Net::HTTP::Post.new(uri).inspect # => "#<Net::HTTP::Post POST>"
#
def inspect
"\#<#{self.class} #{@method}>"
"\#<#{self.class} #{@method} path=#{@path.inspect} headers=#{to_hash.inspect}>"
end

##
Expand Down

0 comments on commit f93f138

Please sign in to comment.