diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-03 09:23:09 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-03 09:23:09 -0800 |
commit | 36d374681ae254a4269fec3aa7e5dc7dbb43a768 (patch) | |
tree | e1c623279678c4db4a9324f4b8720822cffe18f0 /src/core/lib/surface | |
parent | 702f93d3645055bd77181935c18f41a9de272c1e (diff) | |
parent | f2a66434e2e3f84830b4a26cc5e2badb5d943dfa (diff) |
Merge github.com:grpc/grpc into slice_with_exec_ctx
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r-- | src/core/lib/surface/validate_metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/validate_metadata.c b/src/core/lib/surface/validate_metadata.c index 84f0a083bc..f49dd8584b 100644 --- a/src/core/lib/surface/validate_metadata.c +++ b/src/core/lib/surface/validate_metadata.c @@ -53,7 +53,7 @@ int grpc_header_key_is_legal(const char *key, size_t length) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xff, 0x03, 0x00, 0x00, 0x00, 0x80, 0xfe, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - if (length == 0) { + if (length == 0 || key[0] == ':') { return 0; } return conforms_to(key, length, legal_header_bits); |