Skip to content

Commit

Permalink
fix download bug
Browse files Browse the repository at this point in the history
fix download bug
  • Loading branch information
yaozongyou authored Aug 31, 2017
1 parent e984687 commit ba565f3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/qcloud/cos/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ public function download($bucket, $srcPath, $dstPath) {
'data' => array()
);
}
if (hash_file('sha1', $dstPath) !== $sha) {
return array(
'code' => self::COSAPI_NETWORK_ERROR,
'message' => 'file '.$srcPath.' hash error,maybe download has not completed.',
'data' => array()
);
}
return array(
'code' => self::COSAPI_SUCCESS,
'message' => '',
Expand Down

0 comments on commit ba565f3

Please sign in to comment.