🎨 Update kernel HTTP User-Agent

This commit is contained in:
Daniel 2023-08-03 11:26:54 +08:00
parent b955f3c653
commit 85ad37af0a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 2 deletions

View file

@ -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)