Merge pull request #4 from enriclluelles/correct_content_length

Content-Length is supposed to be bytes, not chars
This commit is contained in:
John Bintz 2012-01-23 10:56:58 -08:00
commit 9e75660e10

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