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

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