iawia002 / lux

👾 Fast and simple video download library and CLI tool written in Go
MIT License
27.42k stars 2.96k forks source link

Content-Length is not specified in HTTP response #602

Closed Bekassyl closed 4 years ago

Bekassyl commented 4 years ago

In case of "Transfer-Encoding: chunked" header, response doesn't have to have "Content-Length". But annie explicitly wants "Content-Length" [Error: Content-Length is not present]. Is there way to bypass it somehow?

I'm downloading images from one web-site. One-third of them have "Content-Length" header, rest dont.

Bekassyl commented 4 years ago

used https://www.golangprograms.com/golang-download-image-from-given-url.html

Thank you!

Bekassyl commented 4 years ago

I could have implemented it in annie [Downloading chunked images], but have no experience in open source project contribution. Where to start?