From 58f8201a3298ae00759f895a083a2d1f5ec561b7 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 28 Apr 2017 17:30:56 -1000 Subject: Disable response timeout Allow live view to load indefinitely. Fixes %U5SSvaxQiDrF11j9Pei+4JCqNv/owxE2B0v5aXgUizk=.sha256 --- lib/serve.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/serve.js') 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 = {} -- cgit v1.2.3