Skip to content
Snippets Groups Projects
Commit 602eff71 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #5439 from chrisdunelm/coreclr_metadata2

Support for coreclr
parents fd1ffe42 762ed436
No related branches found
No related tags found
No related merge requests found
...@@ -323,7 +323,7 @@ namespace Grpc.Core ...@@ -323,7 +323,7 @@ namespace Grpc.Core
private static string NormalizeKey(string key) private static string NormalizeKey(string key)
{ {
var normalized = GrpcPreconditions.CheckNotNull(key, "key").ToLower(CultureInfo.InvariantCulture); var normalized = GrpcPreconditions.CheckNotNull(key, "key").ToLowerInvariant();
GrpcPreconditions.CheckArgument(ValidKeyRegex.IsMatch(normalized), GrpcPreconditions.CheckArgument(ValidKeyRegex.IsMatch(normalized),
"Metadata entry key not valid. Keys can only contain lowercase alphanumeric characters, underscores and hyphens."); "Metadata entry key not valid. Keys can only contain lowercase alphanumeric characters, underscores and hyphens.");
return normalized; return normalized;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment