summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2022-03-25 16:12:50 -0700
committerGitHub <noreply@github.com>2022-03-25 16:12:50 -0700
commit6e709c1cb530e7cf2e2d0048458a5efa237da0aa (patch)
tree6c0c44d615db1846293f571775d43753882ae760
parent759421d3e9add44fb5aecf3bac2939ef6bc85b59 (diff)
parenteffd970dd1f476bcb0266c52d79a0a825246543e (diff)
downloaddnspython-6e709c1cb530e7cf2e2d0048458a5efa237da0aa.tar.gz
Merge pull request #798 from bwelling/httpx-fixes
Httpx fixes
-rw-r--r--dns/query.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/query.py b/dns/query.py
index 1dd3283..5663e23 100644
--- a/dns/query.py
+++ b/dns/query.py
@@ -357,7 +357,7 @@ def https(
# set source port and source address
if _have_httpx:
if source_port == 0:
- transport = httpx.HTTPTransport(local_address=source[0])
+ transport = httpx.HTTPTransport(local_address=source[0], verify=verify)
else:
_httpx_ok = False
if _have_requests:
@@ -390,7 +390,7 @@ def https(
else:
cm = requests.sessions.Session()
with cm as session:
- if transport_adapter:
+ if transport_adapter and not _is_httpx:
session.mount(url, transport_adapter)
# see https://tools.ietf.org/html/rfc8484#section-4.1.1 for DoH