https://bz.apache.org/bugzilla/show_bug.cgi?id=62912
--- Comment #2 from Franos <francois.courta...@gemalto.com> --- Hello Mark, Not sure to have really understand what you said. You talk about charset but the content I want to deliver to the client is a binary content. My disappointment is that I set a content type for the response that seems to be modified by Tomcat. Indeed, I set it to "application/xxx.yyy-data;version=1.0" and the client get a Content-Type set to "application/xxx.yyy-data; version=1.0": a space character has been introduced right after the ; character. I have tested this with different User-Agent s. Curl: Request headers: User-Agent: curl/7.40.0 Host: localhost:8080 Accept: */* Response headers: HTTP/1.1 200 Content-Type: application/xxx.yyy-data; version=1.0 Transfer-Encoding: chunked Date: Thu, 15 Nov 2018 15:16:06 GMT Firefox: Request headers: User-Agent: Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/62.0 Host: localhost:8080 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Response headers: HTTP/1.1 200 Content-Type: application/xxx.yyy-data; version=1.0 Transfer-Encoding: chunked Chrome: Request headers: User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Host: localhost:8080 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Response headers: HTTP/1.1 200 Content-Type: application/xxx.yyy-data; version=1.0 Transfer-Encoding: chunked Date: Thu, 15 Nov 2018 16:20:20 GMT So whatever the User-Agent used, the Content-Type is application/xxx.yyy-data; version=1.0 (with a space character right after the ; character) whereas I have written in my servlet code response.setContentType("application/xxx.yyy-data;version=1.0"); (no space character after the ; character). Is it clearer ? Best Regards. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org