Sha256: 4366eaedfd4564fd002f7d610112ef76da17fea94a0314a56513245eb7629f2c

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
middleman-0.12.2 lib/middleman/rack/downstream.rb
middleman-0.12.1 lib/middleman/rack/downstream.rb
middleman-0.12.0.pre3 lib/middleman/rack/downstream.rb
middleman-0.12.0.pre2 lib/middleman/rack/downstream.rb