mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
missing disposition
This commit is contained in:
parent
74dbe877d8
commit
b94c7b4902
@ -178,7 +178,7 @@ class StaticController < ApplicationController
|
|||||||
request.env['sendfile.type'] = ''
|
request.env['sendfile.type'] = ''
|
||||||
|
|
||||||
opts = { disposition: nil }
|
opts = { disposition: nil }
|
||||||
opts[:type] = "application/javascript" if path =~ /\.js$/
|
opts[:type] = "application/javascript" if params[:path] =~ /\.js$/
|
||||||
send_file(path, opts)
|
send_file(path, opts)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user