Support for coreclr

Use .ToLowerInvariant, which is supported by coreclr
pull/5439/head
Chris Bacon 9 years ago
parent 0d034da324
commit 762ed4368a
  1. 2
      src/csharp/Grpc.Core/Metadata.cs

@ -323,7 +323,7 @@ namespace Grpc.Core
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),
"Metadata entry key not valid. Keys can only contain lowercase alphanumeric characters, underscores and hyphens.");
return normalized;

Loading…
Cancel
Save