public ByteBuf getByteBuf() {
        ByteBuf copy = Unpooled.copiedBuffer(baos.toByteArray());
        baos.reset();
        return copy;
    }
Refactored this out of our GZipResponseFilter

User: michaels@netflix.com
Date: 5/10/16
Time: 12:31 PM
zuul-core/src/main/java/com/netflix/zuul/util/Gzipper.java