From 183ee3a273f2000e2dc85e202392a78ac3e72987 Mon Sep 17 00:00:00 2001 From: Niheel Thakkar Date: Fri, 5 Mar 2021 11:57:16 +0530 Subject: [PATCH] 179366445 Add support for GET requests with body Added new config variable 'enable_GET_req_body' which is optional Added validation for the config variable if specified, value of this config needs to be of boolean type only --- lib/default-validator.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/default-validator.js b/lib/default-validator.js index 9bf31d1..a427987 100644 --- a/lib/default-validator.js +++ b/lib/default-validator.js @@ -251,6 +251,10 @@ module.exports.validate = function validate(configObject, options={}) { assert(typeof config.accesscontrol.noRuleMatchAction === 'string', 'config.accesscontrol.noRuleMatchAction is not an string'); } } + + if (config.edgemicro.enable_GET_req_body) { + assert(typeof config.edgemicro.enable_GET_req_body === 'boolean', 'config.edgemicro.enable_GET_req_body is not a boolean'); + } return configObject; };