Skip to content

Commit

Permalink
update to 2.2.0 (#192)
Browse files Browse the repository at this point in the history
* update urlencode

* update to 2.2.0

Co-authored-by: lewzylu <[email protected]>
  • Loading branch information
lewzylu and lewzylu authored May 18, 2021
1 parent 486dee2 commit e67ad81
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
cos-php-sdk-v5 Upgrade Guide
====================
2.1.6 to 2.2.0
----------
`PutObject` interface supports ci image process
`GetObject` interface supports ci image process
Add `ImageInfo` interface, which is used for get image info
Add `ImageExif` interface, which is used for get image exif
Add `ImageAve` interface, which is used for get image ave
Add `ImageProcess` interface, which is used for data processing on cloud
Add `Qrcode` interface, which is used for qrcode recognition
Add `QrcodeGenerate` interface, which is used for generate qrcode
Add `DetectLabel` interface, which is used for detect image label
Add `PutBucketImageStyle` interface, which is used for add bucket image style
Add `GetBucketImageStyle` interface, which is used for get bucket image style
Add `DeleteBucketImageStyle` interface, which is used for delete bucket image style
Add `PutBucketGuetzli` interface, which is used for open bucket guetzli state
Add `GetBucketGuetzli` interface, which is used for get bucket guetzli state
Add `DeleteBucketGuetzli` interface, which is used for close bucket guetzli state

2.1.5 to 2.1.6
----------
- Add `allow_redirects` parameter
Expand Down
2 changes: 1 addition & 1 deletion src/Qcloud/Cos/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
* @method object DeleteBucketGuetzli (array $arg)
*/
class Client extends GuzzleClient {
const VERSION = '2.1.6';
const VERSION = '2.2.0';

public $httpClient;

Expand Down
2 changes: 1 addition & 1 deletion src/Qcloud/Cos/Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function createAuthorization( RequestInterface $request, $expires = '+30
$headerListArray = [];
foreach ( $request->getHeaders() as $key => $value ) {
$key = strtolower( urlencode( $key ) );
$value = urlencode( $value[0] );
$value = rawurlencode( $value[0] );
if ( $this->needCheckHeader( $key ) ) {
$headerListArray[$key] = $key. '='. $value;
}
Expand Down

0 comments on commit e67ad81

Please sign in to comment.