From 830f004e164fada1134fb747bb83e11b95d39ebf Mon Sep 17 00:00:00 2001 From: Sean Williams <72675818+sean-r-williams@users.noreply.github.com> Date: Mon, 22 Jan 2024 18:32:02 -0800 Subject: [PATCH] enable isJFrogRepo flag for domains containing `artifactory` --- src/code/V2ServerAPICalls.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code/V2ServerAPICalls.cs b/src/code/V2ServerAPICalls.cs index e762bf89f..af6be1cc4 100644 --- a/src/code/V2ServerAPICalls.cs +++ b/src/code/V2ServerAPICalls.cs @@ -60,7 +60,7 @@ public V2ServerAPICalls (PSRepositoryInfo repository, PSCmdlet cmdletPassedIn, N _sessionClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", userAgentString); var repoURL = repository.Uri.ToString().ToLower(); _isADORepo = repoURL.Contains("pkgs.dev.azure.com") || repoURL.Contains("pkgs.visualstudio.com"); - _isJFrogRepo = repoURL.Contains("jfrog"); + _isJFrogRepo = repoURL.Contains("jfrog") || repoURL.Contains("artifactory"); _isPSGalleryRepo = repoURL.Contains("powershellgallery.com/api/v2"); }