diff --git a/component/http/http.go b/component/http/http.go index 0592254b..2d709f54 100644 --- a/component/http/http.go +++ b/component/http/http.go @@ -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()) }