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

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:
Sent from the Jetty User mailing list archive at

Back to the top