mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Update kernel HTTP User-Agent
This commit is contained in:
parent
b955f3c653
commit
85ad37af0a
2 changed files with 4 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import (
|
|||
"math/rand"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
|
|
@ -35,7 +36,7 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) {
|
|||
initHttpClient()
|
||||
ServerPort = FixedPort
|
||||
Container = container
|
||||
UserAgent = UserAgent + " " + Container
|
||||
UserAgent = UserAgent + " " + Container + "/" + runtime.GOOS
|
||||
httpclient.SetUserAgent(UserAgent)
|
||||
Lang = lang
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue