Closed stormslowly closed 8 years ago
Hi! The tests are now failing, probably because this PR makes no sense; decodeURI is already called, just inside the send call, so your call here will cause a double decoding.
Please look into the test failures. In addition, to accept the PR, the PR needs to include a test that failed without your change and passes with your change, to prove that it is fixing an issue.
For now, I'm going to close this PR as invalid for the following reasons:
/foo%2525bar.txt
load the file foo bar.txt
when it should be loading the file foo%25bar.txt
.send
module. You can read the documentation at https://github.com/pillarjs/send#sendreq-path-options , which states "the path is a urlencoded path to send (urlencoded, not the actual file-system path)". You cannot decode the path before handing to send, or it's in violation of the API contact.Please feel free to either open a new PR with a fix along with a test that fails without the change and passes with the change, or open an issue instead providing all the details for how we can reproduce thew issue.
sorry for my stupid mistake...
if there is a space in the filename , will got a 404 error.