c-hyper: mark status line as status for Curl_client_write()

To make sure the headers API can filter it out as not a regular header.

Reported-by: Gisle Vanem
Fixes #8894
Closes #8914
This commit is contained in:
Daniel Stenberg 2022-05-25 13:06:29 +02:00
parent 2d5b8048a5
commit b67dcc8ed7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -288,7 +288,7 @@ static CURLcode status_line(struct Curl_easy *data,
len);
if(!data->state.hconnect || !data->set.suppress_connect_headers) {
writetype = CLIENTWRITE_HEADER;
writetype = CLIENTWRITE_HEADER|CLIENTWRITE_STATUS;
if(data->set.include_header)
writetype |= CLIENTWRITE_BODY;
result = Curl_client_write(data, writetype,