attempt to get content length through

This commit is contained in:
Sam 2014-10-21 16:17:13 +11:00
parent 4e7057efb1
commit 832655df14

View file

@ -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