lib/brochure/application.rb in brochure-0.3.0 vs lib/brochure/application.rb in brochure-0.3.1

- old
+ new

@@ -92,13 +92,13 @@ def render_template(template, env, locals = {}) context = context_class.new(self, env, assigns) template.render(context, locals) end - def respond_with(status, body, content_type = "text/html, charset=utf-8") + def respond_with(status, body, content_type = "text/html; charset=utf-8") headers = { "Content-Type" => content_type, - "Content-Length" => body.length.to_s + "Content-Length" => Rack::Utils.bytesize(body).to_s } [status, headers, [body]] end def success(body)