mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:43:33 +03:00
altsvc: accept 'clear' without semicolon as well
Extend test 1654 to verify Fixes #17917 Reported-by: Luke Wilde Closes #17918
This commit is contained in:
parent
9bdd08b3b2
commit
826a32dff3
2 changed files with 15 additions and 2 deletions
|
|
@ -486,8 +486,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
|
|||
DEBUGASSERT(asi);
|
||||
|
||||
/* initial check for "clear" */
|
||||
if(!curlx_str_until(&p, &alpn, MAX_ALTSVC_LINE, ';') &&
|
||||
!curlx_str_single(&p, ';')) {
|
||||
if(!curlx_str_cspn(&p, &alpn, ";\n\r")) {
|
||||
curlx_str_trimblanks(&alpn);
|
||||
/* "clear" is a magic keyword */
|
||||
if(curlx_str_casecompare(&alpn, "clear")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue