We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2920e0c commit 4a43ef3Copy full SHA for 4a43ef3
src/Qiniu/Storage/BucketManager.php
@@ -925,6 +925,7 @@ public function asynchFetchStatus($zone, $id)
925
$response = $this->getV2($url);
926
927
if (!$response->ok()) {
928
+ print("statusCode: " . $response->statusCode);
929
return array(null, new Error($url, $response));
930
}
931
return array($response->json(), null);
@@ -1078,11 +1079,7 @@ private function get($url)
1078
1079
private function getV2($url)
1080
{
1081
$headers = $this->auth->authorizationV2($url, 'GET');
- $ret = Client::get($url, $headers);
1082
- if (!$ret->ok()) {
1083
- return array(null, new Error($url, $ret));
1084
- }
1085
- return $ret;
+ return Client::get($url, $headers);;
1086
1087
1088
private function post($url, $body)
0 commit comments