d101caddd4
Pywidevine does this without having to do it on the scheme side. This makes the scheme more concise.
7 lines
233 B
Python
7 lines
233 B
Python
req = json.loads(base64.b64decode(licBody.encode()).decode())
|
|
b64challenge = base64.b64encode(challenge).decode()
|
|
req['message'] = b64challenge
|
|
|
|
res = await corsFetch(licUrl, "POST", licHeaders, req, "json")
|
|
licence = res['license']
|