Conversation
kanongil
left a comment
There was a problem hiding this comment.
Thanks for your contribution. This seems like a valid issue, and a 404 is probably the appropriate response.
However, we can't merge this PR without a new test case, which tests this.
|
OK, I will try to prepare some tests |
|
tests should be ok now |
|
Hmm, I'm afraid that this error is not used on windows, which causes the coverage check to fail. This is complicated to fix, since the test will need to inject a fake error on windows (inside an Lines 1073 to 1078 in ae77ea5 |
|
check again, should be ok now |
kanongil
left a comment
There was a problem hiding this comment.
Clever fix. We are almost there, just a few more details to finish.
|
Thanks to both of you for working through this— it's a good fix and looks very close to 100% complete as Gil mentioned above. 💎 👍 |
|
Ping for merge and publish? |
Inert will return error 500 for non-existing files, when part of the path resembles an existing file.
For example if /a/b/c.html is existing file, requesting /a/b/c.html/d will return 500 instead of 404.
ENOTDIRis listed here https://nodejs.org/api/errors.html#common-system-errors