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:
parent
408cdaa72d
commit
46a48b6008
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue