fix: fix the wrong header name for HTTP authentication

This commit is contained in:
Dorian Niemiec 2024-12-18 19:11:47 +01:00
parent 3fc7b30ccd
commit ee8bcb1e60

View file

@ -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"])