lib/bullet/rack.rb in bullet-7.0.1 vs lib/bullet/rack.rb in bullet-7.0.2
- old
+ new
@@ -77,10 +77,10 @@
def sse?(headers)
headers['Content-Type'] == 'text/event-stream'
end
def html_request?(headers, response)
- headers['Content-Type']&.include?('text/html') && response_body(response).include?('<html')
+ headers['Content-Type']&.include?('text/html')
end
def response_body(response)
if response.respond_to?(:body)
Array === response.body ? response.body.first : response.body