Skip to content

Commit e76e7af

Browse files
authored
Fix Bug (#140)
* Add traffic limit * fix bug
1 parent 1f13fdb commit e76e7af

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/Qcloud/Cos/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
class Client extends GuzzleClient {
2424
const VERSION = '2.0.5';
2525

26-
private $httpClient;
26+
public $httpClient;
27+
2728
private $api;
2829
private $desc;
2930
private $cosConfig;

src/Qcloud/Cos/CosTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function bucketStyleTransformer(CommandInterface $command, RequestInterfa
5959
$origin_host = $bucketname. '.cos.' . $this->config['region'] . '.' . $this->config['endpoint'];
6060
// domain
6161
if ($this->config['domain'] != null) {
62-
origin_host = $this->config['domain']
62+
$origin_host = $this->config['domain'];
6363
}
6464
$host = $origin_host;
6565
if ($this->config['ip'] != null) {

src/Qcloud/Cos/Tests/Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ public function testPutBucket2()
809809
} catch (\Exception $e) {
810810
}
811811
$this->cosClient->createBucket(array('Bucket' => '12345-'.$this->bucket));
812+
sleep(COSTest::SYNC_TIME);
812813
$this->cosClient->deleteBucket(array('Bucket' => '12345-'.$this->bucket));
813814
} catch (ServiceResponseException $e) {
814815
print $e;

0 commit comments

Comments
 (0)