From 6c615f4e5c9f495e1abd613eecf6901954902882 Mon Sep 17 00:00:00 2001 From: "ignacio.cavina" Date: Thu, 10 Jan 2019 11:35:49 -0300 Subject: [PATCH] Fixes error in body stringification --- lib/swsProcessor.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {