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

Fix passthrough on non-existing file edge cases #54

Closed
wants to merge 1 commit into from
Closed

Fix passthrough on non-existing file edge cases #54

wants to merge 1 commit into from

Conversation

ehmicky
Copy link

@ehmicky ehmicky commented Oct 28, 2014

A request does not "passthrough" (when using opt.passthrough) when the file is non-existent, providing the folder of that file is an existing regular file.
For example, with a folder containing image.jpg, trying to access image.jpg/thisdoesnotexist will fire an error instead of passing the request over to the next middleware.
This pull request fixes this by adding the missing error code ENOTDIR.

@rvagg
Copy link
Collaborator

rvagg commented Nov 11, 2019

closing due to age, feel free to reopen if you'd like to tackle this again

@rvagg rvagg closed this Nov 11, 2019
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

Successfully merging this pull request may close these issues.

2 participants