File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ def self_signed(*args, **kwargs) -> httpx.AsyncClient:
141141 ctx = ssl .create_default_context (ssl .Purpose .SERVER_AUTH , cafile = certs ["org" ]["issuer" ])
142142 if (cert := kwargs .get ("cert" , None )) is not None :
143143 ctx .load_cert_chain (certfile = cert [0 ], keyfile = cert [1 ])
144+ kwargs .pop ("cert" )
144145 return httpx .AsyncClient (* args , verify = ctx , ** kwargs )
145146
146147 api = await aiopenapi3 .OpenAPI .load_async (
@@ -217,6 +218,7 @@ def self_signed_(*args, **kwargs) -> httpx.Client:
217218 ctx = ssl .create_default_context (ssl .Purpose .SERVER_AUTH , cafile = certs ["org" ]["issuer" ])
218219 if (cert := kwargs .get ("cert" , None )) is not None :
219220 ctx .load_cert_chain (certfile = cert [0 ], keyfile = cert [1 ])
221+ kwargs .pop ("cert" )
220222 return httpx .Client (* args , verify = ctx , ** kwargs )
221223
222224 client = await asyncio .to_thread (
You can’t perform that action at this time.
0 commit comments