fix: make User-Agent check case-insensitive (#2566)

This commit is contained in:
Panda authored and GitHub committed 2026-02-13 17:34:06 +08:00
1 parent e4143cf1ad
commit 05fbf552ec
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ func HttpRequest(ctx context.Context, url, method string, header map[string][]st
}
}
if _, ok := header["User-Agent"]; !ok {
if _, ok := req.Header["User-Agent"]; !ok {
req.Header.Set("User-Agent", UA())
}