serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

Wrong result for path rewriting with dot inside

Open e-cloud opened this issue 4 years ago • 1 comments

For example,

/version/8.5.x/

will be recognized as a file.

This is a known issue.

This line of code should not use path.extname to test a path

https://github.com/vercel/serve-handler/blob/master/src/index.js#L608

e-cloud avatar Sep 27 '20 12:09 e-cloud

shameless self-promotion alert:
this feature is fixed in my @warren-bank/serve fork of serve

warren-bank avatar Feb 16 '22 00:02 warren-bank