From ee8bcb1e602aa70f1976de0ccc26d62f545b610e Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Wed, 18 Dec 2024 19:11:47 +0100 Subject: [PATCH] fix: fix the wrong header name for HTTP authentication --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f60a812..30cdf56 100644 --- a/src/index.js +++ b/src/index.js @@ -127,7 +127,7 @@ module.exports = function (req, res, logFacilities, config, next) { !maximumCachedResponseSizeExceeded && shouldCacheResponse( responseCacheControl, - req.headers.authentication !== undefined + req.headers.authorization !== undefined ) ) { if (!responseCacheControl["max-age"])