Skip to content

Commit e67ad81

Browse files
lewzylulewzylu
andauthored
update to 2.2.0 (#192)
* update urlencode * update to 2.2.0 Co-authored-by: lewzylu <lewzylu@tencent.com>
1 parent 486dee2 commit e67ad81

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
cos-php-sdk-v5 Upgrade Guide
22
====================
3+
2.1.6 to 2.2.0
4+
----------
5+
`PutObject` interface supports ci image process
6+
`GetObject` interface supports ci image process
7+
Add `ImageInfo` interface, which is used for get image info
8+
Add `ImageExif` interface, which is used for get image exif
9+
Add `ImageAve` interface, which is used for get image ave
10+
Add `ImageProcess` interface, which is used for data processing on cloud
11+
Add `Qrcode` interface, which is used for qrcode recognition
12+
Add `QrcodeGenerate` interface, which is used for generate qrcode
13+
Add `DetectLabel` interface, which is used for detect image label
14+
Add `PutBucketImageStyle` interface, which is used for add bucket image style
15+
Add `GetBucketImageStyle` interface, which is used for get bucket image style
16+
Add `DeleteBucketImageStyle` interface, which is used for delete bucket image style
17+
Add `PutBucketGuetzli` interface, which is used for open bucket guetzli state
18+
Add `GetBucketGuetzli` interface, which is used for get bucket guetzli state
19+
Add `DeleteBucketGuetzli` interface, which is used for close bucket guetzli state
20+
321
2.1.5 to 2.1.6
422
----------
523
- Add `allow_redirects` parameter

src/Qcloud/Cos/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
* @method object DeleteBucketGuetzli (array $arg)
9191
*/
9292
class Client extends GuzzleClient {
93-
const VERSION = '2.1.6';
93+
const VERSION = '2.2.0';
9494

9595
public $httpClient;
9696

src/Qcloud/Cos/Signature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function createAuthorization( RequestInterface $request, $expires = '+30
7070
$headerListArray = [];
7171
foreach ( $request->getHeaders() as $key => $value ) {
7272
$key = strtolower( urlencode( $key ) );
73-
$value = urlencode( $value[0] );
73+
$value = rawurlencode( $value[0] );
7474
if ( $this->needCheckHeader( $key ) ) {
7575
$headerListArray[$key] = $key. '='. $value;
7676
}

0 commit comments

Comments
 (0)