make ToLower culture invariant

pull/3106/head
Jan Tattermusch 9 years ago
parent 1c3b213306
commit 5414df3011
  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