mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
|
|
@ -24,6 +24,7 @@ import (
|
|||
"mime"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
@ -88,7 +89,7 @@ func Boot() {
|
|||
msStoreFilePath := filepath.Join(WorkingDir, "ms-store")
|
||||
ISMicrosoftStore = gulu.File.IsExist(msStoreFilePath)
|
||||
|
||||
UserAgent = UserAgent + " " + Container
|
||||
UserAgent = UserAgent + " " + Container + "/" + runtime.GOOS
|
||||
httpclient.SetUserAgent(UserAgent)
|
||||
|
||||
initWorkspaceDir(*workspacePath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue