mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 15:42:24 -05:00
Update internal/api/client/streaming/stream.go
Co-authored-by: Ilia Pozdnyakov <iliazeus@proton.me>
This commit is contained in:
parent
81a908f838
commit
f5d34f4d67
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ func (m *Module) StreamGETHandler(c *gin.Context) {
|
||||||
// Chrome also *always* expects the "Sec-Websocket-Protocol"
|
// Chrome also *always* expects the "Sec-Websocket-Protocol"
|
||||||
// response value to match input, so it must always be checked.
|
// response value to match input, so it must always be checked.
|
||||||
queryToken := c.Query(AccessTokenQueryKey)
|
queryToken := c.Query(AccessTokenQueryKey)
|
||||||
headerToken := c.Query(AccessTokenHeader)
|
headerToken := c.GetHeader(AccessTokenHeader)
|
||||||
|
|
||||||
// Prefer query token else use header token.
|
// Prefer query token else use header token.
|
||||||
token := cmp.Or(queryToken, headerToken)
|
token := cmp.Or(queryToken, headerToken)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue