]> git.ipfire.org Git - thirdparty/httpx.git/commit
Read upload files using `read(CHUNK_SIZE)` rather than `iter()`. (#1948)
authorTom Christie <tom@tomchristie.com>
Mon, 22 Nov 2021 13:15:39 +0000 (13:15 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Nov 2021 13:15:39 +0000 (13:15 +0000)
commit6f5865f8605b2cf15872388c3d9bc3623bbf265e
treed3019409ec3841b6e0edd6cf6031fa8b15121111
parente232226d77b5faecc64cc618687b4d52d24ab1db
Read upload files using `read(CHUNK_SIZE)` rather than `iter()`. (#1948)

* Cap upload chunk sizes

* Use '.read' for file streaming, where possible

* Direct iteration should not apply chunk sizes
httpx/_content.py
httpx/_multipart.py
tests/test_content.py