lib/timber/events/http_server_request.rb in timber-2.0.0 vs lib/timber/events/http_server_request.rb in timber-2.0.1

- old
+ new

@@ -17,10 +17,13 @@ @port = attributes[:port] @query_string = Util::HTTPEvent.normalize_query_string(attributes[:query_string]) @scheme = attributes[:scheme] || raise(ArgumentError.new(":scheme is required")) @request_id = attributes[:request_id] - @body = Util::HTTPEvent.normalize_body(@headers["content-type"], attributes[:body]) + # This is disabled for now. The ControllerCall event records the parsed params. + # This should be sufficient for body inspection. If we come across a case where + # it is not we can consider re-enabling this. + # @body = Util::HTTPEvent.normalize_body(attributes[:body]) end def to_hash {body: body, headers: headers, host: host, method: method, path: path, port: port, query_string: query_string, request_id: request_id, scheme: scheme} \ No newline at end of file