Skip to content

Commit b570f36

Browse files
brecht-vermeerschbrecht.vermeersch
andauthored
fix md5 already being decoded (#3)
Co-authored-by: brecht.vermeersch <[email protected]>
1 parent 0ad73fa commit b570f36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require": {
2727
"php": "^8.1",
2828
"league/flysystem": "^3.28",
29-
"azure-oss/storage": "^1.1"
29+
"azure-oss/storage": "^1.2"
3030
},
3131
"require-dev": {
3232
"laravel/pint": "^1.16",

src/AzureBlobStorageAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function checksum(string $path, Config $config): string
311311
->getBlobClient($this->prefixer->prefixPath($path))
312312
->getProperties();
313313

314-
return bin2hex(base64_decode($properties->contentMD5));
314+
return $properties->contentMD5;
315315
} catch (\Throwable $e) {
316316
throw new UnableToProvideChecksum($e->getMessage(), $path, $e);
317317
}

0 commit comments

Comments
 (0)