Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

The Content-Type does not respect Accept header

#55

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".

Reported by Lucas Fais · May 4th, 2010 @ 11:30 AM

State: resolved
Milestone: none
Assigned to: Cipriani Cipriani

Activity

  1. Cipriani
    Cipriani
    • State changed from new to open
    • Assigned user set to Cipriani

    May 6th, 2010 @ 10:17 AM

  2. Cipriani
    Cipriani
    • State changed from open to resolved

    Controller must use respond_with for content negotiation to work.

    May 6th, 2010 @ 11:09 AM

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.