How set 'Content-Type' => 'application/json'
sergeymild opened this issue · comments
SergeyMild commented
How set 'Content-Type' => 'application/json'
Adam Daniels commented
Inside the route or a filter.
response["Content-Type"] = "application/json"
SergeyMild commented
Thanks
Patricio Mac Adden commented
Hey! I just saw this issue, sorry for not answering. Thanks @adam12 for answering so fast!
Kyrre Havik commented
Not to raise the dead, but this should probably be mentioned on the front page, or in the wiki.
Also, shouldn't the build usage of http://www.rubydoc.info/github/rack/rack/Rack/ContentType work?