1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: correct x-client-role header

This commit is contained in:
wdvxdr 2021-10-13 22:51:51 +08:00
parent 1771cda11c
commit 47cdc20d45
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -120,7 +120,7 @@ func runWSClient(b *coolq.CQBot, node yaml.Node) {
func (c *websocketClient) connect(typ, url string, conptr **wsConn) {
log.Infof("开始尝试连接到反向WebSocket %s服务器: %v", typ, c.conf.API)
header := http.Header{
"X-Client-Role": []string{"API"},
"X-Client-Role": []string{typ},
"X-Self-ID": []string{strconv.FormatInt(c.bot.Client.Uin, 10)},
"User-Agent": []string{"CQHttp/4.15.0"},
}