deepjyoti30/downloader-cli

Filesize check on line 76 can fail on missing Content-Length header

ChanceNCounter opened this issue · 2 comments

I don't know much more about it than the person on reddit knew, but I thought I'd document this here. Some download requests don't get Content-Length, causing a TypeError exception on line 76. I was able to reproduce this by attempting to download download.py directly from this repo (via the raw content link.)

@ChanceNCounter Thanks for the heads up. I'll fix it soon.

I tried with the raw download.py file, it downloaded all right. Though I know the issue exists. I have pushed a change.

Can you please check if you're still getting the error because currently I don't have any file to check that. Thanks

Should be fixed now.