mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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