vercel / serve

Static file serving and directory listing
https://npmjs.com/package/serve
MIT License
9.35k stars 687 forks source link

Directory or file name with "#" or "?" does not work properly #774

Open kobe-koto opened 1 year ago

kobe-koto commented 1 year ago

Description

Directory or file name with "#" or "?" does not work properly.

For an example, I have a directory named DL#20230623(or DL?20230623), but actually when I try to access http://0.0.0.0/DL#20230623/(or http://0.0.0.0/DL?0230623/), it return contents which in directory DL(or 404).

I guess it because in a standard URL, string after ? or # is not in path part.

Library version

14.2.0

Node version

20.3.0