mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 02:15:31 +08:00
FIX: remove hardcoding from middleware stack so we can control it
This commit is contained in:
@ -76,7 +76,7 @@ class StaticController < ApplicationController
|
||||
|
||||
# we must disable acceleration otherwise NGINX strips
|
||||
# access control headers
|
||||
request.env['_disable_accl'] = true
|
||||
request.env['sendfile.type'] = ''
|
||||
send_file(path, opts)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user