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
I have multiple routes for the same URL with different accept types:
Spark.get("/channel/:version/", new GetChannelFeed());
Spark.get("/channel/:version/", "text/html", new GetChannelFeedHtml(), templateEngine);
I get the HTML version of the channel in all browsers except IE. There I get the RSS feed. The reason is that IE sends an Accept header without q factor < 1 for "/".
The full accept header for IE is "text/html, application/xhtml+xml, /". So both the text/html Route and the / Route match with the same quality.
But the standard is pretty clear that in this case the most specific media range should be preferred:
I have multiple routes for the same URL with different accept types:
I get the HTML version of the channel in all browsers except IE. There I get the RSS feed. The reason is that IE sends an Accept header without q factor < 1 for "/".
The full accept header for IE is "text/html, application/xhtml+xml, /". So both the text/html Route and the / Route match with the same quality.
But the standard is pretty clear that in this case the most specific media range should be preferred:
So I should get the HTML Version and not the RSS feed.
The text was updated successfully, but these errors were encountered: