Content-Length is supposed to be bytes, not chars #4

Merged
enriclluelles merged 1 commits from correct_content_length into master 2012-01-23 18:56:58 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 6501c039b2 - Show all commits

View File

@ -74,7 +74,7 @@ module Rack
headers["X-Rack-LiveReload"] = '1' headers["X-Rack-LiveReload"] = '1'
end end
content_length += line.length content_length += line.bytesize
end end
headers['Content-Length'] = content_length.to_s headers['Content-Length'] = content_length.to_s