]> git.ipfire.org Git - thirdparty/httpx.git/commit
Fix multipart edge cases with `data={}` and/or `files={}` (#861)
authorDima Boger <kotvberloge@gmail.com>
Mon, 16 Mar 2020 21:34:50 +0000 (00:34 +0300)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2020 21:34:50 +0000 (22:34 +0100)
commit430285f55be7dda017e6b9d710c5e93f26efc67b
tree79295abeac1b0e8acbee0d7d52d1b220eff80dc5
parent43ec09c3cbb089edd2e83ccc717fb95beef0c189
Fix multipart edge cases with `data={}` and/or `files={}` (#861)

* Add reproducible test example for empty multipart

* Possible fix for empty combination of files/data

* Return bytestream with empty data/files

* Remove content-length in test

Co-authored-by: florimondmanca <florimond.manca@gmail.com>
httpx/_content_streams.py
tests/test_content_streams.py