lib/sniffer/adapters/http_adapter.rb in sniffer-0.3.0 vs lib/sniffer/adapters/http_adapter.rb in sniffer-0.3.1

- old
+ new

@@ -37,11 +37,11 @@ data_item.request = Sniffer::DataItem::Request.new(host: uri.host, method: verb, query: query, headers: headers.collect.to_h, - body: body.to_s, + body: body, port: uri.port) Sniffer.store(data_item) end @@ -50,10 +50,10 @@ end if Sniffer.enabled? data_item.response = Sniffer::DataItem::Response.new(status: @res.code, headers: @res.headers.collect.to_h, - body: @res.body.to_s, + body: @res.body, timing: bm) data_item.log end