lib/sniffer/adapters/curb_adapter.rb in sniffer-0.3.2 vs lib/sniffer/adapters/curb_adapter.rb in sniffer-0.4.0
- old
+ new
@@ -74,12 +74,12 @@
data_item.response = Sniffer::DataItem::Response.new(status: status.to_i,
headers: http_headers,
body: body_str,
timing: timing)
- data_item.log
+ Sniffer.notify_response(data_item)
end
end
end
end
-Curl::Easy.send(:include, Sniffer::Adapters::CurlAdapter) if defined?(::Curl::Easy)
+Curl::Easy.include Sniffer::Adapters::CurlAdapter if defined?(::Curl::Easy)