aboutsummaryrefslogtreecommitdiffstats
path: root/lib/policy.js
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-05-07 14:51:18 -0400
committerAlex Shatov <alexs@att.com>2018-05-07 14:51:18 -0400
commitd1195c61ca01888d8752a84a2c008719b24b6ba5 (patch)
treeaf4782921f02a850590b3ac19f425f3736797756 /lib/policy.js
parenta46339420faefc49cb48adf2989a0884ff961278 (diff)
fixed 413 "request entity too large" for /policy
- increased the message limit to 150mb on policy-update API to avoid 413 on catchup messages from policy-handler - external version 2.1.3, internal version 4.4.3 - unit test code coverage Statements : 84% ( 940/1119 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.15% ( 929/1104 ) Change-Id: Iafd27b37fde6b0a310f2ba805f505f380b58ec1f Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-491
Diffstat (limited to 'lib/policy.js')
-rw-r--r--lib/policy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/policy.js b/lib/policy.js
index 4a3248d..1aefc8a 100644
--- a/lib/policy.js
+++ b/lib/policy.js
@@ -349,7 +349,7 @@ const app = require('express')();
app.set('x-powered-by', false);
app.set('etag', false);
app.use(require('./middleware').checkType('application/json'));
-app.use(require('body-parser').json({strict: true}));
+app.use(require('body-parser').json({strict: true, limit: '150mb'}));
app.use(function(req, res, next) {
logger.info(req.dcaeReqId,
"new req: " + req.method + " " + req.originalUrl +