This project is archived and is in readonly mode.

#1005 ✓resolved
Topper Bowers

Mime type incorrect (sort of) for rendering JSON

Reported by Topper Bowers | September 9th, 2008 @ 07:40 PM | in 2.x

It appears that a render of json:

render :json => {:blah => "hi"}.to_json

Is responding with a mime type of text/json instead of the previous application/json

The latest version of prototype (and previous versions) specifically looks for application/json in order to fill the responseJSON property of the response object.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages