serve: Don't require force_privacy_mode to be defined on config
This commit is contained in:
parent
c9288dc391
commit
5b13e1a689
|
@ -204,7 +204,7 @@ async def challenge(request: web.Request) -> web.Response:
|
|||
}, status=400)
|
||||
|
||||
# enforce service certificate (opt-in)
|
||||
if request.app["config"]["force_privacy_mode"] and not cdm._sessions[session_id].service_certificate:
|
||||
if request.app["config"].get("force_privacy_mode") and not cdm._sessions[session_id].service_certificate:
|
||||
return web.json_response({
|
||||
"status": 403,
|
||||
"message": "No Service Certificate set but Privacy Mode is Enforced."
|
||||
|
|
Loading…
Reference in New Issue