hyper: classify headers as CONNECT and 1XX

Closes #9947
This commit is contained in:
Sean McArthur 2022-11-18 12:29:44 -08:00 committed by Daniel Stenberg
parent 8ed97ad2bd
commit 8c859cdb69
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 4 additions and 2 deletions

View File

@ -163,6 +163,10 @@ static int hyper_each_header(void *userdata,
writetype = CLIENTWRITE_HEADER;
if(data->set.include_header)
writetype |= CLIENTWRITE_BODY;
if(data->state.hconnect)
writetype |= CLIENTWRITE_CONNECT;
if(data->req.httpcode/100 == 1)
writetype |= CLIENTWRITE_1XX;
result = Curl_client_write(data, writetype, headp, len);
if(result) {
data->state.hresult = CURLE_ABORTED_BY_CALLBACK;

View File

@ -76,8 +76,6 @@
1533
1540
1591
1941
1942
1943
2301
2302