aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanley.cheung@gmail.com>2015-08-27 16:38:27 -0700
committerGravatar Stanley Cheung <stanley.cheung@gmail.com>2015-08-27 16:38:27 -0700
commit910ad08894a772d8a720e0fd1a39c19e9b9744ac (patch)
treed8e4a1deb68eabe0f3b4e2a2b0d601d4eb42df3e
parent1029e7049cea55a8880b8fe9167bd3f0e483b037 (diff)
parent5414df3011238c6443e0ca38c308aa96c115622c (diff)
Merge pull request #3106 from jtattermusch/culture_invariant
make ToLower culture invariant
-rw-r--r--src/csharp/Grpc.Core/Metadata.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Metadata.cs b/src/csharp/Grpc.Core/Metadata.cs
index 99fe0b5478..2b08e0de51 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);
}
}
}