Skip to content

Commit

Permalink
fixup! Apply GitHub server flag when resolving factory URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Jul 24, 2024
1 parent 4ea3938 commit 53400ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public abstract class AbstractGithubURLParser {
this.apiClient = githubApiClient;
this.disableSubdomainIsolation = disableSubdomainIsolation;
this.providerName = providerName;
this.isGitHubServer = !isNullOrEmpty(oauthEndpoint);
this.isGitHubServer =
!isNullOrEmpty(oauthEndpoint) && !GITHUB_SAAS_ENDPOINT.equals(oauthEndpoint);

endpoint = isNullOrEmpty(oauthEndpoint) ? GITHUB_SAAS_ENDPOINT : trimEnd(oauthEndpoint, '/');

Expand Down

0 comments on commit 53400ca

Please sign in to comment.