node-static icon indicating copy to clipboard operation
node-static copied to clipboard

with listener, server doesn't send 404

Open akostadinov opened this issue 7 years ago • 0 comments

        file.serve(request, response).addListener('error', function (err) {
          console.error("Error serving " + request.url + " - " + err.message);
        });

If I add a listener, then request times out instead of returning 404 as project README suggests. If I remove listener and only have file.serve(request, response);, then 404 is properly returned.

akostadinov avatar May 15 '18 16:05 akostadinov