Skip to content

X-Cascade header Rack 3 issue #2354

@schinery

Description

@schinery

The X-Cascade header in Rack 3 applications appears to need to be lower case, and so it currently doesn't work as expected in Grape apps using Rack 3 using cascade: true.

The following spec, which passes in Rack 2, fails as the default response is returned from Grape instead.

it "raises ActionController::RoutingError" do
  expect { get "/api/foo" }.to raise_error(ActionController::RoutingError)
end

Manually updating my local Grape gem to use x-cascade results in the spec passing again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions