aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-28 17:30:56 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-29 10:48:33 -1000
commit58f8201a3298ae00759f895a083a2d1f5ec561b7 (patch)
tree0b66f18f387529f8de2ad6342a33dfc16f10aa55
parent0c0de7174ac4d66754cd48c52ea96bb9dfc339f0 (diff)
downloadpatchfoo-58f8201a3298ae00759f895a083a2d1f5ec561b7.tar.gz
patchfoo-58f8201a3298ae00759f895a083a2d1f5ec561b7.zip
Disable response timeout
Allow live view to load indefinitely. Fixes %U5SSvaxQiDrF11j9Pei+4JCqNv/owxE2B0v5aXgUizk=.sha256
-rw-r--r--lib/serve.js2
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 = {}