From 6501c039b23ffa4b33ce1200edc320512d444cea Mon Sep 17 00:00:00 2001 From: Enric Lluelles Date: Mon, 23 Jan 2012 19:42:25 +0100 Subject: [PATCH] Content-Length is supposed to be bytes, not chars --- lib/rack/livereload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/livereload.rb b/lib/rack/livereload.rb index 6945505..bfba052 100644 --- a/lib/rack/livereload.rb +++ b/lib/rack/livereload.rb @@ -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 -- 2.40.1