fix: keep legacy SDP rejection response immutable

This commit is contained in:
jibanez-staticduo 2026-10-01 11:37:01 +02:00
parent 5387efcb33
commit 966b047dd5
No known key found for this signature in database

View file

@ -429,7 +429,7 @@ async def proxy_realtime_calls(
decoded_payload: Final = _decode_realtime_token_payload(decrypted_token_value)
if decoded_payload is None and decrypted_token_value.lstrip().startswith(("{", "[")):
return Response(
content=json.dumps({"error": "Invalid or expired token"}),
content='{"error":"Invalid or expired token"}',
status_code=http_status.HTTP_401_UNAUTHORIZED,
media_type="application/json",
)