Skip to content

Commit 1aafe9a

Browse files
authored
fix httpx client mount verify setting (#5632) (#5635)
1 parent 00cdc4d commit 1aafe9a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

reflex/utils/net.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,19 @@ def _httpx_client():
152152
import httpx
153153
from httpx._utils import get_environment_proxies
154154

155+
verify_setting = _httpx_verify_kwarg()
155156
return httpx.Client(
156157
transport=httpx.HTTPTransport(
157158
local_address=_httpx_local_address_kwarg(),
158-
verify=_httpx_verify_kwarg(),
159+
verify=verify_setting,
159160
),
160161
mounts={
161162
key: (
162-
None if url is None else httpx.HTTPTransport(proxy=httpx.Proxy(url=url))
163+
None
164+
if url is None
165+
else httpx.HTTPTransport(
166+
proxy=httpx.Proxy(url=url), verify=verify_setting
167+
)
163168
)
164169
for key, url in get_environment_proxies().items()
165170
},

0 commit comments

Comments
 (0)