mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
attempt to get content length through
This commit is contained in:
parent
4e7057efb1
commit
832655df14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user