diff --git a/src/you_get/common.py b/src/you_get/common.py index e98a80e9..9d688e09 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -545,7 +545,8 @@ def url_save(url, filepath, bar, refer = None, is_part = False, faker = False, h headers = headers else: headers = {} - headers['Range'] = 'bytes=' + str(received) + '-' + if received: + headers['Range'] = 'bytes=' + str(received) + '-' if refer: headers['Referer'] = refer