elysiajs / elysia-static

Plugin for Elysia for serving static folder
MIT License
12 stars 17 forks source link

NOT_FOUND when path contains spaces #29

Closed petereichinger closed 4 months ago

petereichinger commented 4 months ago

I get an 404 error when trying to read files that contain a space in their filename. I tried using %20 or %B both did not help.

petereichinger commented 4 months ago

I fixed it by adding enableDecodeURI: true to the config of the staticPlugin