vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong result for path rewriting with dot inside

e-cloud opened this issue · comments

commented

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