diff options
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js index d09aa0b..7b4ee55 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -67,6 +67,8 @@ Serve.prototype.go = function () { console.log(this.req.method, this.req.url) var self = this + this.res.setTimeout(0) + if (this.req.method === 'POST' || this.req.method === 'PUT') { if (/^multipart\/form-data/.test(this.req.headers['content-type'])) { var data = {} |