fix: client encode
This commit is contained in:
parent
76fad092bf
commit
0045113229
|
@ -7,6 +7,7 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
@ -177,7 +178,10 @@ func NewSubscriber(client *Client, topic string, index int, handler msgbus.Handl
|
|||
u.Scheme = "ws"
|
||||
}
|
||||
|
||||
u.Path += fmt.Sprintf("/%s?index=%d", topic, index)
|
||||
u.Path += fmt.Sprintf("/%s", topic)
|
||||
q := u.Query()
|
||||
q.Set("index", strconv.Itoa(index))
|
||||
u.RawQuery = q.Encode()
|
||||
|
||||
url := u.String()
|
||||
|
||||
|
|
Loading…
Reference in New Issue