lib/teaspoon/instrumentation.rb in teaspoon-1.2.2 vs lib/teaspoon/instrumentation.rb in teaspoon-1.4.0
- old
+ new
@@ -33,13 +33,11 @@
status, headers, asset = @response
headers, asset = [headers.clone, asset.clone]
result = add_instrumentation(asset)
- asset.instance_variable_set(:@source, result)
- asset.instance_variable_set(:@length, headers["Content-Length"] = result.bytesize.to_s)
-
- [status, headers, asset]
+ headers["Content-Length"] = result.bytesize.to_s
+ [status, headers, [result]]
end
protected
def self.ignored?(asset)