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 it on Heroku, they don’t show up. What could be the problem? Is Heroku filtering out my header?
Thanks.
I’ll answer my own question. I just asked Heroku support and they said that Heroku makes those headers camel-case. So
X-ERROR-MESSAGEwill show up asX-Error-Message.