This commit is contained in:
kim 2025-04-14 13:03:32 +01:00
commit 81a908f838

View file

@ -163,8 +163,8 @@ func (m *Module) StreamGETHandler(c *gin.Context) {
// correct, but some client do it since Mastodon allows it, so
// we must allow it for compatibility.
//
// Chrome browser also *always* expects the "Sec-Websocket-Protocol"
// response value to match input, so we always have to check it.
// 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)