ContentType with no char encoding should use previous char encoding #4719
Labels
Specification
For all industry Specifications (IETF / Servlet / etc)
TCK
For various Specification Test Compatibility Kits (eg: Servlet, WebSocket, HTTP/2, etc)
jetty-10.0.x
Servlet tck test com/sun/ts/tests/servlet/api/javax_servlet/servletresponse/URLClient.java.getContentTypeNull2Test.
If Response.setContentType() is called with a string that has no char encoding, any previously set char encoding should be used rather than the default char set for the new content type.
Eg
response.setContentType("foo/bar; charset=some-charset")
the charset encoding should now be some-charset
response.setContentType("text/xml")
the charset encoding should still be some-charset
The text was updated successfully, but these errors were encountered: