FIX: disable x accl redirect for CDN assets

We need to keep headers in tact
This commit is contained in:
Sam
2014-07-10 16:32:06 +10:00
parent e4a7f652cc
commit 5032c96486
5 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
module Middleware
class OptionalSendfile < Rack::Sendfile
def call(env)
if env["_disable_accl"] == true
@app.call(env)
else
super(env)
end
end
end
end