Because the compression handler of netty automatically remove the Content-Length header and use chunked transfer. so this would start to fail.