lib/fakeit/middleware/recorder.rb in fakeit-0.10.0 vs lib/fakeit/middleware/recorder.rb in fakeit-0.11.0
- old
+ new
@@ -13,10 +13,10 @@
private
def log_request(env)
env['rack.input']
&.tap { |body| Logger.info("Request body: #{body.read}") }
- &.tap { |body| body.rewind }
+ &.tap(&:rewind)
end
def log_response(response) = Logger.info("Response body: #{response[2].first}")
end
end