Skip to content

Commit

Permalink
modify trim method
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyuewuyi committed Mar 28, 2016
1 parent 0576750 commit 7470f3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/OSS/Core/OssUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class OssUtil
const OSS_CONTENT = 'content';
const OSS_LENGTH = 'length';
const OSS_HEADERS = 'headers';
const OSS_TRIM_CHARLIST = " \t\n\r\0\x0B/";
const OSS_MAX_OBJECT_GROUP_VALUE = 1000;
const OSS_MAX_PART_SIZE = 5368709120; // 5GB
const OSS_MID_PART_SIZE = 10485760; // 10MB
Expand Down
2 changes: 1 addition & 1 deletion src/OSS/OssClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct($accessKeyId, $accessKeySecret, $endpoint, $isCName
{
$accessKeyId = trim($accessKeyId);
$accessKeySecret = trim($accessKeySecret);
$endpoint = trim($endpoint, OssUtil::OSS_TRIM_CHARLIST);
$endpoint = trim(trim($endpoint), "/");

if (empty($accessKeyId)) {
throw new OssException("access key id is empty");
Expand Down

0 comments on commit 7470f3e

Please sign in to comment.