sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7k stars 434 forks source link

Sirv does not serve files with space in filename when using express #1507

Closed konnextv closed 4 years ago

konnextv commented 4 years ago

Describe the bug Sirv does not serve files with spaces when using express, instead you get a 404. This issue exists with sirv@1.0.0 or later.

To Reproduce

Expected behavior I know that filenames containing spaces and other special characters are not best practice. However, you run into them anywhere and I would not expect sapper to just show a 404 without any further info.

Severity I know about it and fixed it myself. However, that took me some time and either

Additional context

benmccann commented 4 years ago

It doesn't sound to me like there's any issue in Sapper: https://github.com/lukeed/sirv/issues/82#issuecomment-691699841

I don't think we'd change the template since the template uses Polka

konnextv commented 4 years ago

I understand. However, other people will run into this in the feature because in the template it just says polka() // You can also use Express.

In my opinion there should be a notice about this somewhere but if you think differently that is also fine.