fix the default value of payload parameters
MODIFY
lib/protocol/protocol.js
lib/protocol/protocol.js
@@ -242,7 +242,7 @@ function buildHandler (app, method, path, spec, driver, isSessCmd) {
// turn the command and json payload into an argument list for
// the driver methods
- let args = makeArgs(req.params, jsonObj, spec.payloadParams || [], driver.protocol);
+ let args = makeArgs(req.params, jsonObj, spec.payloadParams || {}, driver.protocol);
let driverRes;
// validate command args according to MJSONWP
if (validators[spec.command]) {

fix the default value of payload parameters (#190)