Skip to content

Commit 9ff36c4

Browse files
authored
fix issue18
1 parent 4c8dfc5 commit 9ff36c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Upyun/Api/Multi.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function initRequest($path, Psr7\Stream $stream, $fileHash, $params) {
8080

8181
private function blockUpload($blocksInfo, $blockId, Psr7\Stream $stream, $params = []) {
8282
$startPosition = $blockId * $this->config->maxBlockSize;
83-
$endPosition = $blockId >= $blocksInfo->blocks - 1 ? $stream->getSize() : $startPosition + $this->blockSize;
83+
$endPosition = $blockId >= $blocksInfo->blocks - 1 ? $stream->getSize() : $startPosition + $this->config->maxBlockSize;
8484

8585
$stream->seek($startPosition);
8686

@@ -141,4 +141,4 @@ private function endRequest($initInfo, $data = array()) {
141141
]);
142142
return $response;
143143
}
144-
}
144+
}

0 commit comments

Comments
 (0)