diff --git a/lib/swsProcessor.js b/lib/swsProcessor.js index be8794c..1180b0a 100644 --- a/lib/swsProcessor.js +++ b/lib/swsProcessor.js @@ -260,7 +260,7 @@ swsProcessor.prototype.collectRequestResponseData = function (res) { } if (req.hasOwnProperty("body")) { - rrr.http.request.body = {}; + rrr.http.request.body = Object.assign({}, req.body); swsUtil.swsStringRecursive(rrr.http.request.body, req.body); } diff --git a/package.json b/package.json index 4250f1d..109609b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swagger-stats", - "version": "0.95.6", + "version": "0.95.7", "description": "API Telemetry and APM. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices, based on express routes and Swagger (Open API) specification", "main": "lib/index.js", "scripts": {