davidchalifoux / kaput-cli

The unofficial CLI client for Put.io - Kaput lets you manage your Put.io account from the comfort of your terminal!
https://kaput.sh/
MIT License
68 stars 7 forks source link

Change zip file size to u64 to support larger zip files #42

Closed boysetsfrog closed 1 year ago

boysetsfrog commented 1 year ago

I was getting this error when trying to download a zip of 2.4gb

Creating ZIP... thread 'main' panicked at 'checking zip status: reqwest::Error { kind: Decode, source: Error("invalid value: integer 2597727234, expected i32", line: 1, column: 37) }', src/put/zips.rs:25:90 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Changing the source as in this PR fixed that issue.

davidchalifoux commented 1 year ago

Good catch! Thank you for submitting a PR.