Skip to content

Commit

Permalink
Merge pull request grpc#4467 from ctiller/DotInHeaderName
Browse files Browse the repository at this point in the history
Allow . in header names
  • Loading branch information
dgquintas committed Dec 16, 2015
2 parents 5ff97a2 + a761589 commit 7a53de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/transport/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions tools/codegen/core/gen_legal_metadata_characters.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int main(void) {
for (i = '0'; i <= '9'; i++) legal(i);
legal('-');
legal('_');
legal('.');
dump();

clear();
Expand Down

0 comments on commit 7a53de1

Please sign in to comment.