mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
attempt to get content length through
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user