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.
Files changed (2) hide show
  1. package/lib/server.js +1 -1
  2. 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 !== 'object' && req.body[key] !== undefined){
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{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upcore-tcp",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Upcore Web framework support http websocket",
5
5
  "keywords": [
6
6
  "upcore",