lib/bulletware.rb in bullet-1.7.0 vs lib/bulletware.rb in bullet-1.7.1

- old
+ new

@@ -9,10 +9,10 @@ Bullet.start_request status, headers, response = @app.call(env) return [status, headers, response] if empty?(response) if Bullet.notification? - if check_html?(headers, response) + if !response.body.frozen? and check_html?(headers, response) response_body = response.body << Bullet.javascript_notification headers['Content-Length'] = response_body.length.to_s end Bullet.growl_notification