lagon icon indicating copy to clipboard operation
lagon copied to clipboard

Non-ASCII characters in static files

Open cyco130 opened this issue 1 year ago • 0 comments

Describe the bug The static file handler can't handle non-ASCII characters in file names.

To Reproduce

  • Create a file named public/🙂🙂🙂.txt with the content Hello world
  • Run the dev server
  • Visit the URL /%F0%9F%99%82%F0%9F%99%82%F0%9F%99%82.txt (i.e. /🙂🙂🙂.txt)
  • Notice the 404 error

Expected behavior The text Hello world should be shown.

Information:

  • OS: Fails on Linux, Windows, and MacOS.
  • Browser: Fails on Chrome, Safari, Firefox.
  • Version: 0.7.8

cyco130 avatar Aug 14 '23 22:08 cyco130