lib/bullet/rack.rb in bullet-4.13.0 vs lib/bullet/rack.rb in bullet-4.13.1

- old
+ new

@@ -18,14 +18,14 @@ response_body = response_body(response) << Bullet.gather_inline_notifications add_footer_note(response_body) if Bullet.add_footer headers['Content-Length'] = response_body.bytesize.to_s end end - [status, headers, response_body ? [response_body] : response] - ensure if Bullet.enable? && Bullet.notification? Bullet.perform_out_of_channel_notifications(env) end + [status, headers, response_body ? [response_body] : response] + ensure Bullet.end_request end # fix issue if response's body is a Proc def empty?(response)