diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index ebed2b2db..f060cac77 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -92,7 +92,7 @@ class StaticController < ApplicationController begin response.headers["Last-Modified"] = File.ctime(path).httpdate - response.headers["Content-Length"] = File.size(path) + response.headers["Content-Length"] = File.size(path).to_s rescue Errno::ENOENT raise Discourse::NotFound end