Skip to content

Commit

Permalink
Test: add decodeURIComponent back
Browse files Browse the repository at this point in the history
  • Loading branch information
Leslie-Wong-H committed Jun 3, 2023
1 parent 5ab77fc commit dc899c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ export default async (req, res) => {
if (reqParams.imdbID) {
params.Prefix += reqParams.imdbID;
if (reqParams.filename) {
params.Prefix += "/" + reqParams.filename;
params.Prefix += "/" + decodeURIComponent(reqParams.filename);
}
}

console.log({ reqParams });
console.log({ params });
try {
command = new ListObjectsCommand(params);
const response = await s3.send(command);
Expand Down

0 comments on commit dc899c7

Please sign in to comment.