[common]revert #1940 for it breaks sohu

This commit is contained in:
MaxwellGoblin 2017-07-09 20:55:00 +08:00
parent ee50695951
commit dbe272a8af

View File

@ -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