lib/xray/middleware.rb in xray-rails-0.1.7 vs lib/xray/middleware.rb in xray-rails-0.1.8
- old
+ new
@@ -69,11 +69,11 @@
@view_context ||= Rails.application.assets.context_class.new nil, nil, nil
end
def should_inject_xray?(status, headers, response)
status == 200 &&
- !empty?(response) &&
html_request?(headers, response) &&
+ !empty?(response) &&
!file?(headers) &&
!response.body.frozen?
end
def empty?(response)