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