Currently, pigato requires the worker to call response.end(something). If you just call response.end(), the W_REPLY will not be sent. That means you can't fs.createReadStream("/some/file").pipe(response) (despite what README states). That's because official Streams API states that last argument to .end() is optional, and fs.createReadStream indeed calls .end() without arguments.
Currently, pigato requires the worker to call
response.end(something)
. If you just callresponse.end()
, the W_REPLY will not be sent. That means you can'tfs.createReadStream("/some/file").pipe(response)
(despite what README states). That's because official Streams API states that last argument to.end()
is optional, andfs.createReadStream
indeed calls.end()
without arguments.Could you please fix it?