Skip to content

headers set before error! is missing on response #1719

Closed
@gencer

Description

@gencer

Whenever I execute error!(), response does not contains my headers. In fact none of the headers like X-Request-Id. I presume this is due to calling a new Request instance and return that instead.

How do I make sure that my important headers are in every request that grape gave? Even in Rails::API I am able to hold headers on any error.

Of course, I could add my own Middleware. Is there any better or easy solution before middleware option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions