Skip to content

Loading…

fixes #1 #3

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2012
  1. @masterkain

    Fix displaying HTTP method

    masterkain committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/net-http-spy.rb
View
2 lib/net-http-spy.rb
@@ -30,7 +30,7 @@ def initialize(*args, &block)
def request(*args, &block)
unless started? || @logger_options[:verbose]
- req = args[0].class::METHOD
+ req = args[0].method
self.class.http_logger.info "#{req} #{args[0].path}"
end
Something went wrong with that request. Please try again.