Skip to content

Commit

Permalink
fix(router): keep body same in router
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Jun 13, 2018
1 parent 1e4a91e commit 72be759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tsw/util/http/parseGet.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function(req) {

req.GET = {};
req.query = req.GET;
req.POST = {};
req.POST = req.POST || {}; // keep body same in router
req.body = req.POST;
req.params = {};
if (req.headers.connection === 'upgrade' && req.headers.upgrade === 'websocket') {
Expand Down

0 comments on commit 72be759

Please sign in to comment.