Skip to content

Commit

Permalink
fix: decode url path before sign
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoseruiz committed Sep 4, 2023
1 parent fd7dd02 commit d9f092d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneflowSDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ protected function post_file_s3($uploadUrl, $localPath) {
* @return string
*/
private function token($method, $path, $timestamp){
$stringToSign = strtoupper($method) . ' ' . $path . ' ' . $timestamp;
$stringToSign = strtoupper($method) . ' ' . urldecode($path) . ' ' . $timestamp;
return $this->key . ':' . hash_hmac('sha256', $stringToSign, $this->secret);
}

Expand Down

0 comments on commit d9f092d

Please sign in to comment.