mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 18:48:54 +08:00
Use literal instead of computed value in token lookup
This commit is contained in:
@@ -77,7 +77,7 @@ int lookup_token(const uint8_t *name, size_t namelen) {
|
||||
print '''\
|
||||
case {}:'''.format(size)
|
||||
print '''\
|
||||
switch (name[namelen - 1]) {'''
|
||||
switch (name[{}]) {{'''.format(size - 1)
|
||||
for c in sorted(ents.keys()):
|
||||
headers = sorted(ents[c])
|
||||
print '''\
|
||||
|
||||
Reference in New Issue
Block a user