Skip to content

Commit 899cf89

Browse files
committed
fix picture process 403 bug
1 parent c9375e1 commit 899cf89

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cos-php-sdk-v5 Upgrade Guide
22
====================
3+
2.4.1 to 2.4.2
4+
---------
5+
- 修复图片处理相关接口403签名不对的bug
6+
37
2.4.0 to 2.4.1
48
---------
59
- 增加桶Bucket、GetBucket对应Sample详细注解

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
* @see \Qcloud\Cos\Service::getService()
113113
*/
114114
class Client extends GuzzleClient {
115-
const VERSION = '2.4.1';
115+
const VERSION = '2.4.2';
116116

117117
public $httpClient;
118118

src/CommandToRequestTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ public function ciParamTransformer( CommandInterface $command, $request ) {
205205
$uri = $request->getUri();
206206
$query = $uri->getQuery();
207207
if($query){
208-
$query .= "&" . urlencode($command['ImageHandleParam']);
208+
$query .= "&" . $command['ImageHandleParam'];
209209
}else{
210-
$query .= urlencode($command['ImageHandleParam']);
210+
$query .= $command['ImageHandleParam'];
211211
}
212212
$uri = $uri->withQuery($query);
213213
$request = $request->withUri( $uri );

0 commit comments

Comments
 (0)