c-hyper: fix header value passed to debug callback

Closes #7567
This commit is contained in:
Daniel Stenberg 2021-08-13 16:46:22 +02:00
parent 063bfa358e
commit 1e0b6f705e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -524,7 +524,7 @@ CURLcode Curl_hyper_header(struct Curl_easy *data, hyper_headers *headers,
free(ptr);
}
else
Curl_debug(data, CURLINFO_HEADER_OUT, (char *)line, linelen);
Curl_debug(data, CURLINFO_HEADER_OUT, (char *)n, linelen);
}
numh++;
n += linelen;