Skip to content

Download a file with Redirection corrupts the file data #889

@gtnardy

Description

@gtnardy

If I download a file from a link (e.g: https://github.com/gtnardy/nanos-world-halloween/releases/download/v1.0.0/halloween.zip) which redirects me with set_follow_location enabled, it may end up adding the 'between' received data into my file:

Causing the top part of the file being the content before the file start to be downloaded itself:

image

I could identify with progress callback that the maximum size changed as well during the download:

Downloading 487/621.
Downloading 621/621.
Downloading 1378/1688665.
Downloading 1616/1688665.
Downloading 2994/1688665.
Downloading 4372/1688665.
...

Would that be a bug? Or should I try to handle that on my side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions