https://bz.apache.org/bugzilla/show_bug.cgi?id=64938
Bug ID: 64938
Summary: response.setCharacterEncoding(null) should clear
previous charset
Product: Tomcat 9
Version: unspecified
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
I have a filter set response charset to UTF-8 globally, one of my servlets want
remove charset encoding from response Content-Type, for example
response.setCharacterEncoding(null);
response.setContentType("application/wasm");
It still generate invalid "application/wasm;charset=UTF-8" because
"response.setCharacterEncoding(null)" is noop, currently there is no way to
clear previous charset.
https://github.com/apache/tomcat/blob/master/java/org/apache/coyote/Response.java#L502
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]