fix Live Call crash: Unicode ellipsis in Authorization header

Debug logging used token.take(10) + "…" (U+2026) directly in the
HTTP header value. OkHttp rejects non-ASCII in header values.
Moved the truncation to the log line, header uses the full token.
This commit is contained in:
Bruno Deanoz 2026-06-24 12:51:15 +02:00
parent 408cdaa72d
commit 46a48b6008

View file

@ -82,9 +82,10 @@ class LiveClient(
Log.i(TAG, "openSocket() url=$wsUrl") Log.i(TAG, "openSocket() url=$wsUrl")
Log.d(TAG, "token=${token.take(10)}...")
val request = Request.Builder() val request = Request.Builder()
.url(wsUrl) .url(wsUrl)
.header("Authorization", "Bearer ${token.take(10)}") .header("Authorization", "Bearer $token")
.build() .build()
val socket = client.newWebSocket(request, Listener()) val socket = client.newWebSocket(request, Listener())