mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Add user-agent header for sync websocket conn
This commit is contained in:
parent
dd5f9f3d66
commit
afd5a20936
1 changed files with 1 additions and 0 deletions
|
|
@ -770,6 +770,7 @@ var KernelID = gulu.Rand.String(7)
|
|||
func dialSyncWebSocket() (c *websocket.Conn, err error) {
|
||||
endpoint := util.GetCloudWebSocketServer() + "/apis/siyuan/dejavu/ws"
|
||||
header := http.Header{
|
||||
"User-Agent": []string{util.UserAgent},
|
||||
"x-siyuan-uid": []string{Conf.User.UserId},
|
||||
"x-siyuan-kernel": []string{KernelID},
|
||||
"x-siyuan-ver": []string{util.Ver},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue