post_body_.flush();
InputStream inflator_input_stream =
new GZIPInputStream(new IOBufferInputStream(post_body_), 1024);
// decompress by writing to a new IO buffer, update body
IOBuffer inflatedBodyBuffer = new IOBuffer();
final byte[] byteBuffer = new byte[1024];
int numBytes;
while (-1 != (numBytes = inflator_input_stream.read(byteBuffer))) {
inflatedBodyBuffer.writeBytes(byteBuffer, 0, numBytes);
}
inflatedBodyBuffer.flush();
int inflated_body_length = inflatedBodyBuffer.totalBytes();
_setPostBody(inflatedBodyBuffer, inflated_body_length);
// Remove content encoding, set new length, so request forwarding will work
requestContext.getHeaders().removeHeader("Content-Encoding");
requestContext.getHeaders().setIntHeader("Content-Length",