If I try to set the content type to "image/jpg" in a servlet
response.setContentType("image/jpg")
I get
Content-Type: image/jpg;charset=ISO-8859-1
The default servlet works well instead.
How can I get rid of charset for non text mime types?
The problem was that I used resp.getWriter() instead of resp.getOutputStream() to serve images.