lib/airbrake/user_informer.rb in airbrake-3.0.9 vs lib/airbrake/user_informer.rb in airbrake-3.1.0

- old
+ new

@@ -15,10 +15,10 @@ replace = replacement(env['airbrake.error_id']) body.each do |chunk| new_body << chunk.gsub("<!-- AIRBRAKE ERROR -->", replace) end body.close if body.respond_to?(:close) - headers['Content-Length'] = new_body.sum(&:length).to_s + headers['Content-Length'] = new_body.sum(&:bytesize).to_s body = new_body end [status, headers, body] end end