rails: 500 error with accept-header that has no respond_to block

Hi,

I’m using rails 4.0.3, i currently have the following problem:

When I create a HTTP call to my web-app with the following accept-header: Accept: images/jpeg, I get a 500 error because rails cant find any template that matches that accept header.

I expect this to be a 404 error.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 27 (24 by maintainers)

Most upvoted comments

“images/jpeg” is not a registered media type. See https://www.iana.org/assignments/media-types/media-types.xhtml