You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But using */*in combination with a valid format somehow screws it up and causes it to try to force the format to text/html, which then fails when the action won't respond as such.
I'm almost certain this is intentional. I looked into this a long while ago, and if you look hard enough you'll find previous discussions about this issue (sorry, I don't have a link) but it involves browsers not actually following the spec on properly specifying their Accept header, Safari in particular being problematic.
This deals with a similar area as #4127, but the symptoms seem different enough that I thought it deserved its own bug. Hopefully I'm not wrong.
Make an endpoint that only responds to a particular MIME type, such as JSON:
We can make requests against this as long as we have something compatible in the
Accept
header:But using
*/*
in combination with a valid format somehow screws it up and causes it to try to force the format totext/html
, which then fails when the action won't respond as such.Here's a simple Rails app that can reproduce the issue.. The
users#index
endpoint can be hit as in my above examples.The text was updated successfully, but these errors were encountered: