Skip to content

Commit

Permalink
[common]revert soimort#1940 for it breaks sohu
Browse files Browse the repository at this point in the history
  • Loading branch information
rosynirvana committed Jul 9, 2017
1 parent ee50695 commit dbe272a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/you_get/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dbe272a

Please sign in to comment.