From: Sean McArthur Date: Fri, 18 Nov 2022 20:29:44 +0000 (-0800) Subject: hyper: classify headers as CONNECT and 1XX X-Git-Tag: curl-7_87_0~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c859cdb6907ba0a013c4c7086ad32493a8b9589;p=thirdparty%2Fcurl.git hyper: classify headers as CONNECT and 1XX Closes #9947 --- diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 8ad1a9c28d..ad7a88df90 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -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; diff --git a/tests/data/DISABLED b/tests/data/DISABLED index d4a451b1d1..b13d964969 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -76,8 +76,6 @@ 1533 1540 1591 -1941 -1942 1943 2301 2302