chore: unified UA settings method

This commit is contained in:
wwqgtxx
2026-02-13 18:11:46 +08:00
parent 05fbf552ec
commit 30391b40c4
2 changed files with 2 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ func StreamGunWithTransport(transport *TransportWrap, cfg *Config) (net.Conn, er
header := defaultHeader.Clone()
if cfg.UserAgent != "" {
header["user-agent"] = []string{cfg.UserAgent}
header.Set("User-Agent", cfg.UserAgent)
}
request := &http.Request{