mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
attempt to get content length through
This commit is contained in:
parent
4e7057efb1
commit
832655df14
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class StaticController < ApplicationController
|
||||||
|
|
||||||
begin
|
begin
|
||||||
response.headers["Last-Modified"] = File.ctime(path).httpdate
|
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
|
rescue Errno::ENOENT
|
||||||
raise Discourse::NotFound
|
raise Discourse::NotFound
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue