mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:47:17 +03:00
HTTP/2: strip TE request header
The TE request header field is invalid in HTTP/2. Since clients may not know in advance if a connection negotiates HTTP/2, automatically strip such a header when h2 is in play. Add test_01_10 to verify. Reported-by: Jiri Stary Fixes #15941 Closes #15943
This commit is contained in:
parent
515a21f350
commit
4e15605896
2 changed files with 12 additions and 0 deletions
|
|
@ -4121,7 +4121,9 @@ struct name_const {
|
|||
size_t namelen;
|
||||
};
|
||||
|
||||
/* keep them sorted by length! */
|
||||
static struct name_const H2_NON_FIELD[] = {
|
||||
{ STRCONST("TE") },
|
||||
{ STRCONST("Host") },
|
||||
{ STRCONST("Upgrade") },
|
||||
{ STRCONST("Connection") },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue