lib/admin_it/middleware.rb in admin_it-1.2.4 vs lib/admin_it/middleware.rb in admin_it-1.2.5

- old
+ new

@@ -44,10 +44,10 @@ status, headers, body = @app.call(env) if request.process? length = 0 body.each do |str| str.gsub!(SUBST_REGEXP) { |s| request[SUBST_REGEXP.match(s)[1]] } - length += str.size + length += str.bytesize end headers['Content-Length'] = length.to_s end [status, headers, body] end