lib/bulletware.rb in bullet-1.7.3 vs lib/bulletware.rb in bullet-1.7.4

- 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 !response.body.frozen? and check_html?(headers, response) + if status == 200 and !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