aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2015-12-16 10:48:27 -0800
committerGravatar David G. Quintas <dgq@google.com>2015-12-16 10:48:27 -0800
commit7a53de18ba12f8ca67707a745ed1da82d8402cb4 (patch)
treed10da871786149087a178a5fed867177d2d54d07
parent5ff97a27a9a6d6516b9a2fa36c8e9995b0e05a59 (diff)
parenta7615892f9fe596bb50268207191214dde31aafe (diff)
Merge pull request #4467 from ctiller/DotInHeaderName
Allow . in header names
-rw-r--r--src/core/transport/metadata.c2
-rw-r--r--tools/codegen/core/gen_legal_metadata_characters.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/transport/metadata.c b/src/core/transport/metadata.c
index df05d1a302..02b2402820 100644
--- a/src/core/transport/metadata.c
+++ b/src/core/transport/metadata.c
@@ -703,7 +703,7 @@ static int conforms_to(grpc_mdstr *s, const gpr_uint8 *legal_bits) {
int grpc_mdstr_is_legal_header(grpc_mdstr *s) {
static const gpr_uint8 legal_header_bits[256 / 8] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xff, 0x03, 0x00, 0x00, 0x00,
+ 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};
return conforms_to(s, legal_header_bits);
diff --git a/tools/codegen/core/gen_legal_metadata_characters.c b/tools/codegen/core/gen_legal_metadata_characters.c
index c6658f46c6..3c9e1c7619 100644
--- a/tools/codegen/core/gen_legal_metadata_characters.c
+++ b/tools/codegen/core/gen_legal_metadata_characters.c
@@ -68,6 +68,7 @@ int main(void) {
for (i = '0'; i <= '9'; i++) legal(i);
legal('-');
legal('_');
+ legal('.');
dump();
clear();