"Some text", :status =>...">

Why doesn't Heroku show my own title?

I have this code:

response.headers["X-ERROR-MESSAGE"] = "A message" render :text => "Some text", :status => 400 

On my local machine, I can get the response headers successfully, but when I try this on Heroku, they do not appear. What could be the problem? Is Heroku filtering my header?

Thanks.

+4
source share
1 answer

I will answer my question. I just asked for Heroku's support, and they said that Heroku is doing this camel event. Thus, X-ERROR-MESSAGE will be displayed as X-ERROR-MESSAGE .

+5
source

Source: https://habr.com/ru/post/1379543/


All Articles