Notes posted by filipegiusti
RSS feed
0 thanks
Accept header ignored
Rails ignores the accept header when it contains “,/” or “/,” and returns HTML (or JS if it’s a xhr request).
This is by design to always return HTML when being accessed from a browser.
This doesn’t follow the mime type negotiation specification but it was the only way to circumvent old browsers with bugged accept header. They had he accept header with the first mime type as image/png or text/xml.