diff --git a/src/Qcloud/Cos/Client.php b/src/Qcloud/Cos/Client.php index 70676ca9..53e9fc63 100644 --- a/src/Qcloud/Cos/Client.php +++ b/src/Qcloud/Cos/Client.php @@ -23,7 +23,8 @@ class Client extends GuzzleClient { const VERSION = '2.0.5'; - private $httpClient; + public $httpClient; + private $api; private $desc; private $cosConfig; diff --git a/src/Qcloud/Cos/CosTransformer.php b/src/Qcloud/Cos/CosTransformer.php index 19b5d7d4..c3f6e1b2 100644 --- a/src/Qcloud/Cos/CosTransformer.php +++ b/src/Qcloud/Cos/CosTransformer.php @@ -59,7 +59,7 @@ public function bucketStyleTransformer(CommandInterface $command, RequestInterfa $origin_host = $bucketname. '.cos.' . $this->config['region'] . '.' . $this->config['endpoint']; // domain if ($this->config['domain'] != null) { - origin_host = $this->config['domain'] + $origin_host = $this->config['domain']; } $host = $origin_host; if ($this->config['ip'] != null) { diff --git a/src/Qcloud/Cos/Tests/Test.php b/src/Qcloud/Cos/Tests/Test.php index 544b83fb..52be9913 100644 --- a/src/Qcloud/Cos/Tests/Test.php +++ b/src/Qcloud/Cos/Tests/Test.php @@ -809,6 +809,7 @@ public function testPutBucket2() } catch (\Exception $e) { } $this->cosClient->createBucket(array('Bucket' => '12345-'.$this->bucket)); + sleep(COSTest::SYNC_TIME); $this->cosClient->deleteBucket(array('Bucket' => '12345-'.$this->bucket)); } catch (ServiceResponseException $e) { print $e;