Skip to content

Commit 4d79c5a

Browse files
committed
Fix up Basic Authorization header parsing
1 parent f7b0108 commit 4d79c5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/code/ContainerRegistryServerAPICalls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ private void SetDefaultHeaders(Collection<KeyValuePair<string, string>> defaultH
11571157
if (string.Equals(header.Key, "Authorization", StringComparison.OrdinalIgnoreCase))
11581158
{
11591159
_sessionClient.DefaultRequestHeaders.Authorization = header.Value.StartsWith("Basic ")
1160-
? new AuthenticationHeaderValue(header.Value)
1160+
? AuthenticationHeaderValue.Parse(header.Value)
11611161
: new AuthenticationHeaderValue("Bearer", header.Value);
11621162
}
11631163
else if (string.Equals(header.Key, "Accept", StringComparison.OrdinalIgnoreCase))

0 commit comments

Comments
 (0)