mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[common]revert #1940 for it breaks sohu
This commit is contained in:
parent
ee50695951
commit
dbe272a8af
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user