Browse Source
fix: update to mounts instead of proxy
pull/621/head
jonmongeau13
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/keycloak/connection.py
|
@ -100,9 +100,9 @@ class ConnectionManager(object): |
|
|
self._s.mount(protocol, adapter) |
|
|
self._s.mount(protocol, adapter) |
|
|
|
|
|
|
|
|
if proxies: |
|
|
if proxies: |
|
|
self._s.proxy.update(proxies) |
|
|
|
|
|
|
|
|
self._s.mounts.update(proxies) |
|
|
|
|
|
|
|
|
self.async_s = httpx.AsyncClient(verify=verify, proxy=proxies, cert=cert) |
|
|
|
|
|
|
|
|
self.async_s = httpx.AsyncClient(verify=verify, mounts=proxies, cert=cert) |
|
|
self.async_s.auth = None # don't let requests add auth headers |
|
|
self.async_s.auth = None # don't let requests add auth headers |
|
|
self.async_s.transport = httpx.AsyncHTTPTransport(retries=1) |
|
|
self.async_s.transport = httpx.AsyncHTTPTransport(retries=1) |
|
|
|
|
|
|
|
|