]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix passing source address with httpx. 798/head
authorBrian Wellington <bwelling@xbill.org>
Fri, 25 Mar 2022 20:23:07 +0000 (13:23 -0700)
committerBrian Wellington <bwelling@xbill.org>
Fri, 25 Mar 2022 20:23:07 +0000 (13:23 -0700)
commiteffd970dd1f476bcb0266c52d79a0a825246543e
tree6c0c44d615db1846293f571775d43753882ae760
parentb681aeeddc79a4afac2783e45d5767e5ab1988c1
Fix passing source address with httpx.

When dns.query.https() is passed a source address, it needs to create an
adapter for either requests or httpx to use it.  As it doesn't know
which one will actually be used, it creates both.  But then if it
decides to use httpx, it attempts to attach the requests adapter, which
fails.
dns/query.py