]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
c-hyper: mark status line as status for Curl_client_write()
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 May 2022 11:06:29 +0000 (13:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 May 2022 11:07:12 +0000 (13:07 +0200)
To make sure the headers API can filter it out as not a regular header.

Reported-by: Gisle Vanem
Fixes #8894
Closes #8914

lib/c-hyper.c

index 9ea2e883b92d1475c95952d45f190e31974d7a7a..ec2e15d534802079c80cfbcb783de18f799c6b3e 100644 (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,