diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-28 17:30:56 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-29 10:48:33 -1000 |
commit | 58f8201a3298ae00759f895a083a2d1f5ec561b7 (patch) | |
tree | 0b66f18f387529f8de2ad6342a33dfc16f10aa55 /lib | |
parent | 0c0de7174ac4d66754cd48c52ea96bb9dfc339f0 (diff) | |
download | patchfoo-58f8201a3298ae00759f895a083a2d1f5ec561b7.tar.gz patchfoo-58f8201a3298ae00759f895a083a2d1f5ec561b7.zip |
Disable response timeout
Allow live view to load indefinitely.
Fixes %U5SSvaxQiDrF11j9Pei+4JCqNv/owxE2B0v5aXgUizk=.sha256
Diffstat (limited to 'lib')
-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 = {} |