lib/bullet/rack.rb in bullet-6.1.3 vs lib/bullet/rack.rb in bullet-6.1.4

- old
+ new

@@ -20,12 +20,12 @@ if Bullet.inject_into_page? && !file?(headers) && !sse?(headers) && !empty?(response) && status == 200 if html_request?(headers, response) response_body = response_body(response) response_body = append_to_html_body(response_body, footer_note) if Bullet.add_footer response_body = append_to_html_body(response_body, Bullet.gather_inline_notifications) - response_body = append_to_html_body(response_body, xhr_script) if Bullet.add_footer + response_body = append_to_html_body(response_body, xhr_script) if Bullet.add_footer && !Bullet.skip_http_headers headers['Content-Length'] = response_body.bytesize.to_s - else + elsif !Bullet.skip_http_headers set_header(headers, 'X-bullet-footer-text', Bullet.footer_info.uniq) if Bullet.add_footer set_header(headers, 'X-bullet-console-text', Bullet.text_notifications) if Bullet.console_enabled? end end Bullet.perform_out_of_channel_notifications(env)