We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195718d commit 29e3563Copy full SHA for 29e3563
xbox/webapi/common/signed_session.py
@@ -3,14 +3,16 @@
3
A wrapper around httpx' AsyncClient which transparently calculates the "Signature" header.
4
"""
5
6
+from ssl import SSLContext
7
import httpx
8
9
from xbox.webapi.common.request_signer import RequestSigner
10
11
12
class SignedSession(httpx.AsyncClient):
- def __init__(self, request_signer=None):
13
- super().__init__()
+ def __init__(self, request_signer=None, ssl_context: SSLContext=None):
14
+ super().__init__(verify=ssl_context if ssl_context is not None else True)
15
+
16
self.request_signer = request_signer or RequestSigner()
17
18
@classmethod
0 commit comments