Skip to content

Rack apps should return array #1041

@lasseebert

Description

@lasseebert

In this commit released with 0.12.0: 129ad6e, the formatter middleware now returns a Rack::Response and not an array.

From what I understand, this breaks Rack's conventions (and broke the middleware in my app).
Also, the docs for Rack::Response clearly states that an app should return Rack::Response#finish (aliased to #to_a).

Any reason this has been done?
If not, I will be happy to provide a pull request that reverses the commit ;)

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