Skip to content

Commit

Permalink
179366445 Add support for GET requests with body
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
niheelthakkar89 authored and keyurkarnik committed Mar 5, 2021
1 parent aaa8350 commit 183ee3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/default-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 183ee3a

Please sign in to comment.