Merge pull request #3106 from jtattermusch/culture_invariant

make ToLower culture invariant
pull/3117/head
Stanley Cheung 9 years ago
commit 910ad08894
  1. 3
      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);
}
}
}

Loading…
Cancel
Save