From dbe272a8af363544e7fc45a68aa86045e91d66be Mon Sep 17 00:00:00 2001 From: MaxwellGoblin Date: Sun, 9 Jul 2017 20:55:00 +0800 Subject: [PATCH] [common]revert #1940 for it breaks sohu --- src/you_get/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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