Commit f85a213f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Update static header table

parent 041cec2d
...@@ -98,7 +98,7 @@ static nghttp2_hd_static_entry static_table[] = { ...@@ -98,7 +98,7 @@ static nghttp2_hd_static_entry static_table[] = {
MAKE_STATIC_ENT(47, "proxy-authenticate", "", 3993199572u, 0u), MAKE_STATIC_ENT(47, "proxy-authenticate", "", 3993199572u, 0u),
MAKE_STATIC_ENT(60, "www-authenticate", "", 4051929931u, 0u), MAKE_STATIC_ENT(60, "www-authenticate", "", 4051929931u, 0u),
MAKE_STATIC_ENT(23, "cache-control", "", 4086191634u, 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 */ /* Index to the position in static_table */
......
...@@ -9,8 +9,8 @@ def hash(s): ...@@ -9,8 +9,8 @@ def hash(s):
entries = [] entries = []
for line in sys.stdin: for line in sys.stdin:
m = re.match(r'(\d+)\s+(\S+)\s+(\S+)?', line) m = re.match(r'(\d+)\s+(\S+)\s+(\S.*)?', line)
val = m.group(3) if m.group(3) else '' 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.append((hash(m.group(2)), int(m.group(1)), m.group(2), val))
entries.sort() entries.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment