FIX: remove hardcoding from middleware stack so we can control it

This commit is contained in:
Sam
2014-07-10 17:01:21 +10:00
parent 5032c96486
commit 6019e3f257
4 changed files with 1 additions and 22 deletions

View File

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