Browse Source

fix: update to mounts instead of proxy

pull/621/head
jonmongeau13 5 months ago
committed by GitHub
parent
commit
6251bbd949
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/keycloak/connection.py

4
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)

Loading…
Cancel
Save