Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
fixed #524
Browse files Browse the repository at this point in the history
  • Loading branch information
r0oth3x49 committed Jul 19, 2020
1 parent 75a015a commit 32e3b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udemy/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def download(self, filepath="", unsafe=False, quiet=False, callback=lambda *x: N
bytes_to_be_downloaded = 0
fmode, offset = "wb", 0
chunksize, bytesdone, t0 = 16384, 0, time.time()
headers = {'User-Agent': HEADERS.get('User-Agent')}
headers = {'User-Agent': HEADERS.get('User-Agent'), "Accept-Encoding": None}
if os.path.exists(temp_filepath):
offset = os.stat(temp_filepath).st_size

Expand Down

1 comment on commit 32e3b10

@Laiteux
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.