mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-13 12:37:17 +08:00
Merge pull request #164 from cmil/fix-garbled-body
fix garbled arrays in posted JSON data
This commit is contained in:
@@ -198,7 +198,7 @@ function wrapAsyncFunctions(asyncFunctions, sandbox, events, done, sandboxRoot)
|
||||
return result;
|
||||
}
|
||||
};
|
||||
} else if (typeof asyncFunctions[k] === 'object') {
|
||||
} else if (typeof asyncFunctions[k] === 'object' && !(asyncFunctions[k] instanceof Array)) {
|
||||
sandbox[k] = sandbox[k] || {};
|
||||
wrapAsyncFunctions(asyncFunctions[k], sandbox[k], events, done, sandboxRoot);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user