Skip to content

Check content length of image matches the content-length header - #551

Merged
gsaluja9 merged 1 commit into
developfrom
http-image
Jan 24, 2025
Merged

gsaluja9 merged 1 commit into
developfrom
http-image

Conversation

@ali-asadpoor

@ali-asadpoor ali-asadpoor commented Jan 21, 2025 •

Copy link
Copy Markdown
Contributor

When downloading images or videos, sometimes content is not received completely and the requests library doesn't reflect any error. Comparing Content-Length header with the size of received content will tell us if content was downloaded completely or no.

@ali-asadpoor ali-asadpoor changed the title Check content length of downloaded image matches the content-length h… Check content length of image matches the content-length header Jan 21, 2025
@ali-asadpoor
ali-asadpoor force-pushed the http-image branch 2 times, most recently from 6bc9a0b to e91dec8 Compare January 21, 2025 21:39

@luisremis luisremis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks!

Comment thread aperturedb/Sources.py Resolved
@gsaluja9
gsaluja9 merged commit fe7dc6f into develop Jan 24, 2025
@gsaluja9
gsaluja9 deleted the http-image branch January 24, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants