Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
REmove unnecessary trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi (from Dev Box) committed Nov 3, 2023
1 parent 55faec0 commit 97f5841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AzureIdentityAccessTokenProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task<string> GetAuthorizationTokenAsync(Uri uri, Dictionary<string,
return string.Empty;
}

if(!uri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase) && !_localHostStrings.Contains(uri.Host.TrimEnd(':'))) {
if(!uri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase) && !_localHostStrings.Contains(uri.Host)) {
span?.SetTag("com.microsoft.kiota.authentication.is_url_valid", BoxedFalse);
throw new ArgumentException("Only https is supported");
}
Expand Down

0 comments on commit 97f5841

Please sign in to comment.