serve-handler
serve-handler copied to clipboard
Wrong result for path rewriting with dot inside
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
shameless self-promotion alert:
this feature is fixed in my @warren-bank/serve
fork of serve