From f67afac71c058d7535718476e652fe52c2cbc312 Mon Sep 17 00:00:00 2001 From: chen-zimmer-px Date: Wed, 17 Jan 2024 14:35:38 +0200 Subject: [PATCH] removed te header based logger --- CHANGELOG.md | 1 - lib/pxenforcer.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25529dd..edd42ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added -- Support for header-based logger - Added `risk_start_time` and `enforcer_start_time` fields to enforcer activities. - Added `failOnEmptyBody` flag for `callServer` to specify weather or not a request should fail if it has no body. - Updated the configuration of PX first-party requests to include a connection timeout diff --git a/lib/pxenforcer.js b/lib/pxenforcer.js index 9746985..2914150 100644 --- a/lib/pxenforcer.js +++ b/lib/pxenforcer.js @@ -80,13 +80,8 @@ class PerimeterXEnforcer { parseCookies(req, res).then(() => { enforcer.enforce(req, res, (err, response) => { let pxContext = null; - if (req.locals && req.locals.pxCtx) { - pxContext = req.locals.pxCtx; - } if (!err && response) { PerimeterXEnforcer.handleCallbackResponse(err, response, res); - - enforcer.sendHeaderBasedLogs(pxContext, enforcer.config.conf, req); } else { //pass saveResponseBody(res); @@ -102,8 +97,6 @@ class PerimeterXEnforcer { } }); - enforcer.sendHeaderBasedLogs(pxContext, enforcer.config.conf, req); - next(); }