diff --git a/lib/rack/webconsole/assets.rb b/lib/rack/webconsole/assets.rb index bada324..ed581bd 100644 --- a/lib/rack/webconsole/assets.rb +++ b/lib/rack/webconsole/assets.rb @@ -41,7 +41,7 @@ def call(env) # Inject the html, css and js code to the view response_body.gsub!('', "#{code}") - headers['Content-Length'] = (response_body.length + 2).to_s + headers['Content-Length'] = response_body.length.to_s [status, headers, [response_body]] end