missing disposition

This commit is contained in:
Sam Saffron 2017-03-20 17:07:32 -04:00
parent 74dbe877d8
commit b94c7b4902

View File

@ -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