Skip to content

Commit e00fae6

Browse files
committed
resumable_io: api from rs-mkfile to mkfile
1 parent 633dc05 commit e00fae6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qiniu/resumable_io.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,14 @@ function Qiniu_Rio_Put($upToken, $key, $body, $fsize, $putExtra) // => ($putRet,
109109
$self = new Qiniu_Rio_UploadClient($upToken);
110110

111111
$progresses = array();
112-
$host = $QINIU_UP_HOST;
113112
$uploaded = 0;
114113
while ($uploaded < $fsize) {
115114
if ($fsize < $uploaded + QINIU_RIO_BLOCK_SIZE) {
116115
$bsize = $fsize - $uploaded;
117116
} else {
118117
$bsize = QINIU_RIO_BLOCK_SIZE;
119118
}
120-
list($blkputRet, $err) = Qiniu_Rio_Mkblock($self, $host, $body, $bsize);
119+
list($blkputRet, $err) = Qiniu_Rio_Mkblock($self, $QINIU_UP_HOST, $body, $bsize);
121120
$host = $blkputRet['host'];
122121
$uploaded += $bsize;
123122
$progresses []= $blkputRet;

0 commit comments

Comments
 (0)