Content-Length is supposed to be bytes, not chars
This commit is contained in:
parent
e223e1ddbf
commit
6501c039b2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user