Skip to content

Commit

Permalink
Use Rack::RewindableInput::Middleware if using rack 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pbstriker38 committed Feb 1, 2024
1 parent 5102d4e commit 99986d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/flipper/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def self.app(flipper = nil, options = {})
yield builder if block_given?
builder.use Rack::Head
builder.use Rack::Deflater
builder.use Rack::RewindableInput::Middleware if Gem::Version.new(Rack.release) >= Gem::Version.new('3.0.0')
builder.use Flipper::Api::JsonParams
builder.use Flipper::Middleware::SetupEnv, flipper, env_key: env_key
builder.use Flipper::Api::Middleware, env_key: env_key
Expand Down

0 comments on commit 99986d8

Please sign in to comment.