mirror of
https://github.com/curl/curl.git
synced 2026-07-25 20:07:16 +03:00
parent
65bc682524
commit
5d903ce3a3
1 changed files with 1 additions and 2 deletions
|
|
@ -451,7 +451,6 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
|
|||
{
|
||||
const char *p = value;
|
||||
size_t len;
|
||||
enum alpnid dstalpnid = srcalpnid; /* the same by default */
|
||||
char namebuf[MAX_ALTSVC_HOSTLEN] = "";
|
||||
char alpnbuf[MAX_ALTSVC_ALPNLEN] = "";
|
||||
struct altsvc *as;
|
||||
|
|
@ -478,7 +477,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
|
|||
do {
|
||||
if(*p == '=') {
|
||||
/* [protocol]="[host][:port]" */
|
||||
dstalpnid = alpn2alpnid(alpnbuf);
|
||||
enum alpnid dstalpnid = alpn2alpnid(alpnbuf); /* the same by default */
|
||||
p++;
|
||||
if(*p == '\"') {
|
||||
const char *dsthost = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue