This project is archived and is in readonly mode.
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
-
Frederick Cheung December 12th, 2008 @ 02:27 PM
Doesn't seem to be the case for me on either 2.1.2 or edge. Can you still reproduce this ?
-
Frederick Cheung December 21st, 2008 @ 05:10 PM
- Assigned user set to Frederick Cheung
- State changed from new to incomplete
We'll reopen when this can be reproduced
-
Ryan Bigg April 11th, 2010 @ 01:57 AM
- State changed from incomplete to resolved
application/json is now the standard.
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>