mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
FIX: remove hardcoding from middleware stack so we can control it
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user