This commit is contained in:
yumoqing 2025-09-14 20:44:24 +08:00
parent 3548f8303e
commit 5c3e2c6382

View File

@ -125,7 +125,10 @@ class FileStorage:
startpos = 0 startpos = 0
endpos = stats.st_size endpos = stats.st_size
range = request.headers.get('Range') range = request.headers.get('Range')
bytes=0-
if range: if range:
range = range.split('=')[-1]
s,e = range.split('-') s,e = range.split('-')
if s: if s:
startpos = int(s) startpos = int(s)