forked from proxmoxer/proxmoxer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add switchover to requests_toolbelt for large file
When requests handles files, it reads the entire file into memory and sends in a single payload. Currently the python SSL tooling does not support single payloads larger than 2^31-1 bytes (https://bugs.python.org/issue42853#msg384566) This means that files ~ >= 2GiB cannot be sent using requests This commit allows a switchover to the streaming multipart payload provided by requests_toolbelt (if installed)
- Loading branch information
Showing
1 changed file
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters