Update static header table
This commit is contained in:
parent
041cec2d97
commit
f85a213fb1
|
@ -98,7 +98,7 @@ static nghttp2_hd_static_entry static_table[] = {
|
|||
MAKE_STATIC_ENT(47, "proxy-authenticate", "", 3993199572u, 0u),
|
||||
MAKE_STATIC_ENT(60, "www-authenticate", "", 4051929931u, 0u),
|
||||
MAKE_STATIC_ENT(23, "cache-control", "", 4086191634u, 0u),
|
||||
MAKE_STATIC_ENT(15, "accept-encoding", "", 4127597688u, 0u),
|
||||
MAKE_STATIC_ENT(15, "accept-encoding", "gzip, deflate", 4127597688u, 1733326877u),
|
||||
};
|
||||
|
||||
/* Index to the position in static_table */
|
||||
|
|
|
@ -9,8 +9,8 @@ def hash(s):
|
|||
|
||||
entries = []
|
||||
for line in sys.stdin:
|
||||
m = re.match(r'(\d+)\s+(\S+)\s+(\S+)?', line)
|
||||
val = m.group(3) if m.group(3) else ''
|
||||
m = re.match(r'(\d+)\s+(\S+)\s+(\S.*)?', line)
|
||||
val = m.group(3).strip() if m.group(3) else ''
|
||||
entries.append((hash(m.group(2)), int(m.group(1)), m.group(2), val))
|
||||
|
||||
entries.sort()
|
||||
|
|
Loading…
Reference in New Issue