I have a Filter Servlet that filters request from a Servlet. I do not want to do something on a request for a Image, so I have for example this code:
if (baseURL.endsWith("png"))
{
chain.doFilter(servletrequest, servletresponse);
}
Which on the doFilter method of of the filter, I don't do anything and just call chain.doFilter, I expected that the response image will be sent properly in the client however the Content-Type that comes back is "application/octet-stream" instead of "image/png"
Any idea why this happens?