mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 07:54:11 -05:00
11 lines
197 B
Ruby
11 lines
197 B
Ruby
module Middleware
|
|
class OptionalSendfile < Rack::Sendfile
|
|
def call(env)
|
|
if env["_disable_accl"] == true
|
|
@app.call(env)
|
|
else
|
|
super(env)
|
|
end
|
|
end
|
|
end
|
|
end
|