Skip to content

Commit

Permalink
feat: only cascade apps for 404s (not 405s)
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 23, 2020
1 parent b8f029e commit 4e1b308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def build_api
builder.use @make_it_later_api_auth
builder.use Rack::PactBroker::Convert404ToHal
builder.use Rack::PactBroker::DatabaseTransaction, configuration.database_connection
builder.run Rack::Cascade.new(api_apps)
builder.run Rack::Cascade.new(api_apps, [404])
builder
end

Expand Down Expand Up @@ -244,7 +244,7 @@ def running_app
prepare_app
apps = @cascade_apps
@app_builder.map "/" do
run Rack::Cascade.new(apps)
run Rack::Cascade.new(apps, [404])
end
@app_builder
end
Expand Down

0 comments on commit 4e1b308

Please sign in to comment.