diff --git a/lib/ExpressRedisCache/route.js b/lib/ExpressRedisCache/route.js index 1aa5e0e..4eec62e 100644 --- a/lib/ExpressRedisCache/route.js +++ b/lib/ExpressRedisCache/route.js @@ -198,7 +198,7 @@ module.exports = (function () { /** Create the new cache **/ self.add(name, body, { - type: this._headers['content-type'], + type: this.getHeader('content-type'), status: this.statusCode, expire: expirationPolicy(req, res) },