Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with listener, server doesn't send 404 #206

Open
akostadinov opened this issue May 15, 2018 · 0 comments
Open

with listener, server doesn't send 404 #206

akostadinov opened this issue May 15, 2018 · 0 comments

Comments

@akostadinov
Copy link

akostadinov commented May 15, 2018

        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 akostadinov changed the title with listener, server doesn with listener, server doesn't send 404 May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant