Skip to content

Commit 15194b6

Browse files
committed
Fix calculation for Content-MD5 in S3 deployer
1 parent f73ccbe commit 15194b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Unreleased
22

3+
- Fix wrong calculation for Content-MD5 in S3 deployer.
4+
35
## 9.3.1 (2025-07-29)
46

57
- Fix "direct-deploy --no-detect" gave the message

src/S3/Deployer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function uploadFilesIter( \Iterator $path_infos ): void {
164164
WsLog::l( 'Failed to hash file ' . $filename );
165165
continue;
166166
} else {
167-
$file_hash = $path_info->getContentHash();
167+
$file_hash = hex2bin( $path_info->getContentHash() );
168168
$cmd_data['ContentMD5'] = base64_encode( $file_hash );
169169
$cmd_data['ContentType'] = $content_type;
170170
}

0 commit comments

Comments
 (0)