function supportsGzip(req) {
    var accept = req.headers["accept-encoding"];
    return accept && accept.indexOf("gzip") > -1;
}
Does the current request support compressed encoding?
@param {Object} req
@returns {boolean}