diff options
author | David Garcia Quintas <dgq@google.com> | 2016-03-21 11:59:33 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-03-21 11:59:33 -0700 |
commit | 07503b6e5c725ae875b908dd467589e80b4480fe (patch) | |
tree | 6b5341aec880d609558c368a72de6e97f2da28f3 | |
parent | b08ee7a260d0f274554892cd3138215ab905ce77 (diff) |
Add identity to static metadata accept-encodings bitmasks
-rw-r--r-- | src/core/transport/static_metadata.c | 2 | ||||
-rwxr-xr-x | tools/codegen/core/gen_static_metadata.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/transport/static_metadata.c b/src/core/transport/static_metadata.c index eeedae0619..84abb59e99 100644 --- a/src/core/transport/static_metadata.c +++ b/src/core/transport/static_metadata.c @@ -50,7 +50,7 @@ grpc_mdstr grpc_static_mdstr_table[GRPC_STATIC_MDSTR_COUNT]; grpc_mdelem grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT]; uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 3, 7, 5, 2, 4, 8, 6, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 4, 8, 6, 2, 4, 8, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; diff --git a/tools/codegen/core/gen_static_metadata.py b/tools/codegen/core/gen_static_metadata.py index e6ae00e611..593baec7fc 100755 --- a/tools/codegen/core/gen_static_metadata.py +++ b/tools/codegen/core/gen_static_metadata.py @@ -196,7 +196,7 @@ for mask in range(1, 1<<len(COMPRESSION_ALGORITHMS)): all_strs.add(val) all_elems.add(elem) compression_elems.append(elem) - static_userdata[elem] = 1 + mask + static_userdata[elem] = 1 + (mask | 1) all_strs = sorted(list(all_strs), key=mangle) all_elems = sorted(list(all_elems), key=mangle) |