lib/bullet/rack.rb in bullet-5.5.0 vs lib/bullet/rack.rb in bullet-5.5.1
- old
+ new
@@ -53,10 +53,10 @@
def footer_note
"<div #{footer_div_attributes}>" + footer_close_button + Bullet.footer_info.uniq.join("<br>") + "</div>"
end
def file?(headers)
- headers["Content-Transfer-Encoding"] == "binary"
+ headers["Content-Transfer-Encoding"] == "binary" || headers["Content-Disposition"]
end
def sse?(headers)
headers["Content-Type"] == "text/event-stream"
end