mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:08:06 +02:00
fix byte range set check in SendAssetTask
This commit is contained in:
parent
fab1bdaeb7
commit
06ce63f421
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void SendAssetTask::run() {
|
|||
QFile file { filePath };
|
||||
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
if (byteRange.isSet()) {
|
||||
if (!byteRange.isSet()) {
|
||||
// if the byte range is not set, force it to be from 0 to the end of the file
|
||||
byteRange.fromInclusive = 0;
|
||||
byteRange.toExclusive = file.size();
|
||||
|
|
Loading…
Reference in a new issue