Closed
Description
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?