diff --git a/app/vmalert/utils/auth.go b/app/vmalert/utils/auth.go index 77ad69ddbc..35db61fb31 100644 --- a/app/vmalert/utils/auth.go +++ b/app/vmalert/utils/auth.go @@ -59,6 +59,7 @@ func WithOAuth(clientID, clientSecret, clientSecretFile, tokenURL, scopes string } } +// WithHeaders returns AuthConfigOptions and set Headers based on the given params func WithHeaders(headers string) AuthConfigOptions { return func(config *promauth.HTTPClientConfig) { if headers != "" {