mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:13:35 +03:00
altsvc: use Curl_peer in processing
Use `data->state.origin` when processing alt-avc information. Decomplexify parsing function. Closes #22184
This commit is contained in:
parent
2f1e94eaed
commit
cfc7922377
7 changed files with 247 additions and 198 deletions
|
|
@ -57,12 +57,6 @@ enum alpnid Curl_alpn2alpnid(const unsigned char *name, size_t len)
|
|||
return ALPN_none; /* unknown, probably rubbish input */
|
||||
}
|
||||
|
||||
enum alpnid Curl_str2alpnid(const struct Curl_str *cstr)
|
||||
{
|
||||
return Curl_alpn2alpnid((const unsigned char *)curlx_str(cstr),
|
||||
curlx_strlen(cstr));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue