diff --git a/internal/msggateway/context.go b/internal/msggateway/context.go index ecfd45df6..1d32ff71c 100644 --- a/internal/msggateway/context.go +++ b/internal/msggateway/context.go @@ -129,7 +129,7 @@ func (c *UserConnContext) GetToken() string { return c.Req.URL.Query().Get(Token) } func (c *UserConnContext) SetToken(token string) { - c.Req.URL.Query().Set(Token, token) + c.Req.URL.RawQuery = Token + "=" + token } func (c *UserConnContext) GetBackground() bool {