From f5d34f4d673336b6bb5e85492826f3a66f7c6bd0 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 14 Apr 2025 13:47:02 +0100 Subject: [PATCH] Update internal/api/client/streaming/stream.go Co-authored-by: Ilia Pozdnyakov --- internal/api/client/streaming/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/client/streaming/stream.go b/internal/api/client/streaming/stream.go index 1cba58916..8fafed7c2 100644 --- a/internal/api/client/streaming/stream.go +++ b/internal/api/client/streaming/stream.go @@ -166,7 +166,7 @@ func (m *Module) StreamGETHandler(c *gin.Context) { // Chrome also *always* expects the "Sec-Websocket-Protocol" // response value to match input, so it must always be checked. queryToken := c.Query(AccessTokenQueryKey) - headerToken := c.Query(AccessTokenHeader) + headerToken := c.GetHeader(AccessTokenHeader) // Prefer query token else use header token. token := cmp.Or(queryToken, headerToken)