]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hyper: classify headers as CONNECT and 1XX
authorSean McArthur <sean@seanmonstar.com>
Fri, 18 Nov 2022 20:29:44 +0000 (12:29 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 19 Nov 2022 12:01:12 +0000 (13:01 +0100)
Closes #9947

lib/c-hyper.c
tests/data/DISABLED

index 8ad1a9c28dfd93864251e3b7445fe4f6bbbf513c..ad7a88df90011ff174af9adf61a5032576f100a9 100644 (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;
index d4a451b1d1eda1a0ae988ff7cfacea8ff04a6468..b13d96496998ef36a299343735e40f0dffc7a9c9 100644 (file)
@@ -76,8 +76,6 @@
 1533
 1540
 1591
-1941
-1942
 1943
 2301
 2302