mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
17 lines
274 B
Ruby
17 lines
274 B
Ruby
|
module Middleman
|
||
|
module Rack
|
||
|
class Downstream
|
||
|
def initialize(app, options={})
|
||
|
@app = app
|
||
|
end
|
||
|
|
||
|
def call(env)
|
||
|
if env["DOWNSTREAM"]
|
||
|
env["DOWNSTREAM"]
|
||
|
else
|
||
|
@app.call(env)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|