Skip to content

Commit 0bc3bda

Browse files
authored
Merge pull request #18 from ridgey-dev/feature/fix-digest-format
2 parents 2e19b7b + 1f708ab commit 0bc3bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SignhostClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function performRequest(string $endpoint, string $method, $data = null, $
8181
$uploadFileHandle = fopen($filePath, 'rb');
8282

8383
$headers[] = 'Content-Type: application/pdf';
84-
$headers[] = 'Digest: SHA256=' . base64_encode(pack('H*', hash_file('sha256', $filePath)));
84+
$headers[] = 'Digest: SHA-256=' . base64_encode(pack('H*', hash_file('sha256', $filePath)));
8585
}
8686

8787
// When data is set, we must add Content-Type: application/json header

0 commit comments

Comments
 (0)