mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:43:31 +03:00
alt-svc: more liberal ALPN name parsing
Allow pretty much anything to be part of the ALPN identifier. In particular minus, which is used for "h3-20" (in-progress HTTP/3 versions) etc. Updated test 356. Closes #4182
This commit is contained in:
parent
decefd5778
commit
1132f43012
2 changed files with 2 additions and 2 deletions
|
|
@ -343,7 +343,7 @@ static CURLcode getalnum(const char **ptr, char *alpnbuf, size_t buflen)
|
|||
while(*p && ISBLANK(*p))
|
||||
p++;
|
||||
protop = p;
|
||||
while(*p && ISALNUM(*p))
|
||||
while(*p && !ISBLANK(*p) && (*p != ';') && (*p != '='))
|
||||
p++;
|
||||
len = p - protop;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue