You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the requested file name contains a space or any other non-ASCII character, sirv searches the file named with the percent-encoded name, e.g. if /my file.txt is requested, then sirv searches a file named my%20file.txt, which is not what is expected in the file system.
This occurs both in dev mode and in normal mode.
It can be fixed by adding uri = decodeURI(uri) or uri = decodeURIComponent(uri) -- I’m not sure what variant should be used here.
The text was updated successfully, but these errors were encountered:
Seb35
added a commit
to Seb35/sirv
that referenced
this issue
Apr 6, 2019
When the requested file name contains a space or any other non-ASCII character, sirv searches the file named with the percent-encoded name, e.g. if
/my file.txt
is requested, then sirv searches a file namedmy%20file.txt
, which is not what is expected in the file system.This occurs both in dev mode and in normal mode.
It can be fixed by adding
uri = decodeURI(uri)
oruri = decodeURIComponent(uri)
-- I’m not sure what variant should be used here.The text was updated successfully, but these errors were encountered: