-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name decoding is broken for already encoded characters. #93
Comments
Thanks @pschupp01! This helps alot :) |
It's weird though, because it requests the correct URL: |
It looks like the decoding done on the filenames when the response is received is breaking the process. EDIT: To be honest, I'm not quite sure where to start with this. It seems that both my test server and home server serve similar results - They decode themselves and the |
Fixes path decoding on file paths like "text%20folder" by removing useless decodings.
Fix special character issue (#93)
I was facing this issue today, and managed to implement a simple failing test.
If a directory has a name containing encoded character it will fail to get the correct directory name.
I have added a directory with name
two%20words
, containing a single file.And testing
getDirectoryContents
on this folder.Step to reproduce:
• Add
./test/serverContents/two%20words/file2.txt
• Add the following test in
getDirectoryContents.spec.js
• npm t
The text was updated successfully, but these errors were encountered: