Spaces:
Running
Running
Commit
·
a0f1e72
1
Parent(s):
59e7379
Code Updates & Optimisations :Server Upgrade Test
Browse files
FileStream/server/Functions/downloader.py
CHANGED
|
@@ -102,7 +102,7 @@ def parse_range(range_header: str, file_size: int):
|
|
| 102 |
from_bytes = int(from_bytes)
|
| 103 |
until_bytes = int(until_bytes) if until_bytes else file_size - 1
|
| 104 |
else:
|
| 105 |
-
from_bytes =
|
| 106 |
until_bytes = (request.http_range.stop or file_size) - 1
|
| 107 |
return from_bytes, until_bytes
|
| 108 |
except ValueError:
|
|
|
|
| 102 |
from_bytes = int(from_bytes)
|
| 103 |
until_bytes = int(until_bytes) if until_bytes else file_size - 1
|
| 104 |
else:
|
| 105 |
+
from_bytes = 0
|
| 106 |
until_bytes = (request.http_range.stop or file_size) - 1
|
| 107 |
return from_bytes, until_bytes
|
| 108 |
except ValueError:
|