The Content-Type does not respect Accept header
Reported by Lucas Fais | May 4th, 2010 @ 11:30 AM
When I call a URL like "http://my.domain.com/articles/my_slug", with Accept=application/atom+xml, the Content-Type in the response is "text/html".
But, when I call a URL like "http://my.domain.com/articles", with Accept or not, the Content-Type in the response is "application/atom+xml".
I think that the Content-Type default should be "application/atom+xml".
Comments and changes to this ticket
-
Cipriani May 6th, 2010 @ 10:17 AM
- State changed from new to open
- Assigned user set to Cipriani
-
Cipriani May 6th, 2010 @ 11:09 AM
- State changed from open to resolved
Controller must use respond_with for content negotiation to work.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »