upcore-tcp 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +1 -1
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -513,7 +513,7 @@ module.exports = class{
|
|
|
513
513
|
return true;
|
|
514
514
|
}
|
|
515
515
|
req.q = (key)=>{
|
|
516
|
-
if(typeof req.body
|
|
516
|
+
if(typeof req.body == 'object' && req.body[key] !== undefined){
|
|
517
517
|
if(Array.isArray(req.body[key])){
|
|
518
518
|
return req.body[key][req.body[key].length - 1];
|
|
519
519
|
}else{
|