size_t namelen;
};
+/* keep them sorted by length! */
static struct name_const H2_NON_FIELD[] = {
+ { STRCONST("TE") },
{ STRCONST("Host") },
{ STRCONST("Upgrade") },
{ STRCONST("Connection") },
assert r.response['status'] == 200, f'{r.responsw}'
assert r.response['protocol'] == 'HTTP/2', f'{r.response}'
assert r.json['server'] == env.domain1
+
+ # http: strip TE header in HTTP/2 requests
+ def test_01_10_te_strip(self, env: Env, httpd):
+ curl = CurlClient(env=env)
+ url = f'https://{env.authority_for(env.domain1, "h2")}/data.json'
+ r = curl.http_get(url=url, extra_args=['--http2', '-H', 'TE: gzip'])
+ r.check_exit_code(0)
+ assert len(r.responses) == 1, f'{r.responses}'
+ assert r.responses[0]['status'] == 200, f'{r.responses[1]}'
+ assert r.responses[0]['protocol'] == 'HTTP/2', f'{r.responses[1]}'