Skip to content

Commit

Permalink
chore: update test to match decoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
yenfryherrerafeliz committed Jun 7, 2024
1 parent c6f6732 commit 31fae1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/S3/PutObjectUrlMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function (ResultInterface $result) use ($command) {
: null;
break;
case 'CompleteMultipartUpload':
$result['ObjectURL'] = urldecode($result['Location']);
$result['ObjectURL'] = urldecode($result['Location'] ?? '');
break;
}
return $result;
Expand Down
4 changes: 2 additions & 2 deletions tests/S3/ObjectCopierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ public function testS3ObjectCopierDoesTransformUnicodeKeyToEncodedURL()

public function MultipartCopierProvider(){
return [
["中文", "%E4%B8%AD%E6%96%87"],
["文件夹/文件", "%E6%96%87%E4%BB%B6%E5%A4%B9/%E6%96%87%E4%BB%B6"],
["中文", "文件夹/文件"],
["文件夹/文件", "中文"],
["first-folder/second-folder/key", "first-folder/second-folder/key"],
];
}
Expand Down

0 comments on commit 31fae1f

Please sign in to comment.