Content-Length is supposed to be bytes, not chars

This commit is contained in:
Enric Lluelles 2012-01-23 19:42:25 +01:00
parent e223e1ddbf
commit 6501c039b2

View File

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