https://github.com/node-modules/koa-gzip/blob/master/index.js#L35