From 5414df3011238c6443e0ca38c308aa96c115622c Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 27 Aug 2015 13:15:24 -0700 Subject: [PATCH] make ToLower culture invariant --- src/csharp/Grpc.Core/Metadata.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csharp/Grpc.Core/Metadata.cs b/src/csharp/Grpc.Core/Metadata.cs index 99fe0b5478a..2b08e0de51b 100644 --- a/src/csharp/Grpc.Core/Metadata.cs +++ b/src/csharp/Grpc.Core/Metadata.cs @@ -33,6 +33,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; +using System.Globalization; using System.Runtime.InteropServices; using System.Text; @@ -320,7 +321,7 @@ namespace Grpc.Core private static string NormalizeKey(string key) { - return Preconditions.CheckNotNull(key, "key").ToLower(); + return Preconditions.CheckNotNull(key, "key").ToLower(CultureInfo.InvariantCulture); } } }