]> git.ipfire.org Git - thirdparty/httpx.git/commit
When setting headers, fallback to `utf-8` if no encoding is specified yet. (#820)
authorPiotr Staroszczyk <piotr.staroszczyk@get24.org>
Mon, 24 Feb 2020 12:29:51 +0000 (13:29 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 12:29:51 +0000 (12:29 +0000)
commit50d337e807839c21e796fd8b01c67d8a672a9721
tree9aae8fc48b7a4ef2731333df728d95b0045b0288
parentefe9f61bc2f047574c7b78bbd3d00ca74f930196
When setting headers, fallback to `utf-8` if no encoding is specified yet. (#820)

* Headers: fallback to utf8 encoding

* Headers.__setitem__: use utf8 only if encoding is not set
httpx/_models.py