Skip to content
Discussion options

You must be logged in to vote

This isn't new in 1.11. Controller.java and Http.java are identical between 1.9.0 and 1.11.0, so the upgrade didn't change it. More likely a client with a different Accept header started hitting the new deploy.

render() with no template name uses action + "." + request.format, and Http.Request.resolveFormat() sets the format from the Accept header. If the header contains text/html or application/xhtml, or starts with */*, you get html. Otherwise application/xml or text/xml gives xml, text/plain gives txt, and application/json or text/javascript gives json. There's no fallback to .html when that file is missing.

I reproduced it in Docker with the 1.9.0 and 1.11.0 release zips (play new, a …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AMcBain
Comment options

Answer selected by AMcBain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants