|
|
@ -50,7 +50,7 @@ static int conforms_to(const char *s, size_t len, const uint8_t *legal_bits) { |
|
|
|
|
|
|
|
|
|
|
|
int grpc_header_key_is_legal(const char *key, size_t length) { |
|
|
|
int grpc_header_key_is_legal(const char *key, size_t length) { |
|
|
|
static const uint8_t legal_header_bits[256 / 8] = { |
|
|
|
static const uint8_t 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, |
|
|
|
0x80, 0xfe, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; |
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; |
|
|
|
if (length == 0) { |
|
|
|
if (length == 0) { |
|
|
|