Set content-length correctly in ruby 1.9
quark-zju opened this issue · 0 comments
quark-zju commented
Similar issue as mikedouglas/toto@3c3217b
When Rack::Bug is enabled and there is some non-ascii characters (for example, CJK characters) in content, Content-Length is not correct. This will cause a Rack::Lint::LintError like app error: Content-Length header was 437190, but should be 439170 (Rack::Lint::LintError)