Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ResourceHandler corrupts images

>>changing the charset to UTF-8 will probably do the trick

But how can I change request charset ?
I've wrapped request with HttpServletRequestWrapper, and seems that
ResourceHandler never calls request.getHeader, getHeaderNames, and
getHeaders.

Scala code:

class MRH extends jetty.handler.ResourceHandler {
    override def handle(target:String, request:HttpServletRequest,
response:HttpServletResponse, dispatch:Int):Unit = {
println("Request charset: " + request.getHeader("Accept-Charset"));
        val req = new MRW(request);
println("Req charset: " + req.getHeader("Accept-Charset"));
        super.handle(target, req, response, dispatch);
    }
}




--
View this message in context: http://jetty.4.n6.nabble.com/ResourceHandler-corrupts-images-tp4959274p4959280.html
Sent from the Jetty User mailing list archive at Nabble.com.


Back to the top