Skip to content

Commit

Permalink
Fix update auth (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewzylu authored Jan 24, 2018
1 parent f18424f commit 4f1b94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qcloud/cos/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,11 @@ private function listBase(
*/
private function updateBase(
$bucket, $path, $bizAttr = null, $authority = null, $custom_headers_array = null) {

$signature = $this->auth->createNonreusableSignature($bucket, $path);
$path = $this->cosUrlEncode($path);
$expired = time() + self::EXPIRED_SECONDS;
$url = $this->generateResUrl($bucket, $path);
$signature = $this->auth->createNonreusableSignature($bucket, $path);

$data = array('op' => 'update');

Expand Down

0 comments on commit 4f1b94a

Please sign in to comment.