lib/clutterbuck/erb.rb in clutterbuck-erb-0.3.0 vs lib/clutterbuck/erb.rb in clutterbuck-erb-0.3.1
- old
+ new
@@ -111,18 +111,18 @@
content = ""
until render_chain.empty?
view = render_chain.pop
-
+
cur_binding = get_binding(vars) { content.chomp }
content = erbterpreter(view).result(cur_binding)
end
[
200,
[
- ["Content-Length", content.bytesize],
+ ["Content-Length", content.bytesize.to_s],
["Content-Type", "text/html; charset=utf-8"]
],
[content]
]
end