Skip to content
Myr

Ensure that we open files in binary mode.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 6c72509 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/advanced.rst+1 added-1 removed
227 unmodified lines
228-----------------229230Requests supports streaming uploads, which allow you to send large streams or files without reading them into memory. To stream and upload, simply provide a file-like object for your body::231232 with open('massive-body') as f:232 with open('massive-body', 'rb') as f:233 requests.post('http://some.url/streamed', data=f)234235236Chunk-Encoded Requests
446 unmodified lines