File tree 1 file changed +2
-0
lines changed
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:
141
141
ctx = ssl .create_default_context (ssl .Purpose .SERVER_AUTH , cafile = certs ["org" ]["issuer" ])
142
142
if (cert := kwargs .get ("cert" , None )) is not None :
143
143
ctx .load_cert_chain (certfile = cert [0 ], keyfile = cert [1 ])
144
+ kwargs .pop ("cert" )
144
145
return httpx .AsyncClient (* args , verify = ctx , ** kwargs )
145
146
146
147
api = await aiopenapi3 .OpenAPI .load_async (
@@ -217,6 +218,7 @@ def self_signed_(*args, **kwargs) -> httpx.Client:
217
218
ctx = ssl .create_default_context (ssl .Purpose .SERVER_AUTH , cafile = certs ["org" ]["issuer" ])
218
219
if (cert := kwargs .get ("cert" , None )) is not None :
219
220
ctx .load_cert_chain (certfile = cert [0 ], keyfile = cert [1 ])
221
+ kwargs .pop ("cert" )
220
222
return httpx .Client (* args , verify = ctx , ** kwargs )
221
223
222
224
client = await asyncio .to_thread (
You can’t perform that action at this time.
0 commit comments