]> git.ipfire.org Git - thirdparty/httpx.git/commit
Allow custom headers in multipart/form-data requests (#1936)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Thu, 13 Jan 2022 08:49:14 +0000 (00:49 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 08:49:14 +0000 (08:49 +0000)
commit0f1ff50a1e88ddee0c7ffe4ef1c04f0dc30cc6ab
treed24d239b9709048706b033e92d2fd0071e867764
parent3eaf69a7723369958a36ecd2f3f67db226137545
Allow custom headers in multipart/form-data requests (#1936)

* feat: allow passing multipart headers

* Add test for including content-type in headers

* lint

* override content_type with headers

* compare tuples based on length

* incorporate suggestion

* remove .title() on headers
httpx/_multipart.py
httpx/_types.py
tests/test_multipart.py