diff options
author | Michael Lumish <mlumish@google.com> | 2015-07-27 16:45:43 -0700 |
---|---|---|
committer | Michael Lumish <mlumish@google.com> | 2015-07-27 16:45:43 -0700 |
commit | bba6be1cb8c83ead1406c138a1dc1e066f6a0c37 (patch) | |
tree | a8da0b9e7cdb25693c1998b89242756c98b430bb | |
parent | cd114a7415774c37b5c798ecf9b8e248ceb7678f (diff) | |
parent | 5f8d9dccf45ed5633a2b980f8a11919183083c2c (diff) |
Merge pull request #2684 from jtattermusch/lowercase_keys
only use lowercase metadata keys in headers
-rw-r--r-- | src/csharp/Grpc.Core.Tests/ClientServerTest.cs | 4 | ||||
-rw-r--r-- | src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs index e286ea519f..540fe756c0 100644 --- a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs +++ b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs @@ -209,8 +209,8 @@ namespace Grpc.Core.Tests { var headers = new Metadata { - new Metadata.Entry("asciiHeader", "abcdefg"), - new Metadata.Entry("binaryHeader-bin", new byte[] { 1, 2, 3, 0, 0xff }), + new Metadata.Entry("ascii-header", "abcdefg"), + new Metadata.Entry("binary-header-bin", new byte[] { 1, 2, 3, 0, 0xff }), }; var internalCall = new Call<string, string>(ServiceName, EchoMethod, channel, headers); var call = Calls.AsyncUnaryCall(internalCall, "ABC", CancellationToken.None); diff --git a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs index 26f332c1cf..242d29a9a5 100644 --- a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs +++ b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs @@ -65,7 +65,7 @@ namespace math.Tests // for header support. client.HeaderInterceptor = (metadata) => { - metadata.Add(new Metadata.Entry("customHeader", "abcdef")); + metadata.Add(new Metadata.Entry("custom-header", "abcdef")); }; } |