From 36b6006e7680f4f8122285d77245138751e48d7d Mon Sep 17 00:00:00 2001 From: Gerhard Schaden Date: Mon, 12 Jun 2023 18:49:23 +0200 Subject: [PATCH] fix NPE * authorization: `Bearer ${options.auth.bearer} --- backends/request/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/request/client.js b/backends/request/client.js index b91e0b94..022f870c 100644 --- a/backends/request/client.js +++ b/backends/request/client.js @@ -67,7 +67,7 @@ function upgradeRequest (options, cb) { // Passing authorization header options.headers = { ...options.headers, - authorization: `Bearer ${options.auth.bearer}` + authorization: `Bearer ${options.auth?.bearer}` } const ws = new WebSocket(wsUrl, protocol, options)