Skip to content

Commit b657fe7

Browse files
authored
Merge pull request #15 from phy25/patch-1
Remove duplicate bucketName in usage request url
2 parents ca93e85 + e0732f7 commit b657fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upyun.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function getFileInfo($path)
178178
*/
179179
public function getFolderUsage($bucket = '/')
180180
{
181-
return $this->_do_request('GET', "/{$this->_bucketname}/?usage");
181+
return $this->_do_request('GET', "{$bucket}?usage");
182182
}
183183

184184
/**

0 commit comments

Comments
 (0)