Open akostadinov opened 6 years ago
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.
file.serve(request, response);
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.