Add back-ticks around the WWW-Authenticate header name in exception (#5717)

message.
This commit is contained in:
Ahson Khan 2024-06-13 10:12:05 -07:00 committed by GitHub
parent f80f2d7999
commit 20efadde4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,7 +406,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken(
if (authHeader == headers.end())
{
throw AuthenticationException(
"Did not receive expected WWW-Authenticate header "
"Did not receive expected 'WWW-Authenticate' header "
"in the response from Azure Arc Managed Identity Endpoint.");
}
@ -417,7 +417,7 @@ Azure::Core::Credentials::AccessToken AzureArcManagedIdentitySource::GetToken(
|| challenge.find(ChallengeValueSeparator, eq + 1) != std::string::npos)
{
throw AuthenticationException(
"The WWW-Authenticate header in the response from Azure Arc "
"The 'WWW-Authenticate' header in the response from Azure Arc "
"Managed Identity Endpoint did not match the expected format.");
}