Task List
Steps to Reproduce
- Use the
render() method specifying a view but without a contentType
- Utilize a gson view or non-html view
- Observe that the Content-Type is set to
text/html
- Without specifying the view name (relying on the convention) the Content-Type is set appropriately
Expected Behaviour
The Content-Type should be set by the view layer
Actual Behaviour
The Content-Type is defaulted to 'text/html'
Environment Information
- Operating System: Linux
- Grails Version: 3.1+
- JDK Version: 1.8
Example Application
Exposed in grails-views after 1.1.2
apache/grails-views#93