]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
c-hyper: add header collection writer in hyper builds
authorStefan Eissing <stefan@eissing.org>
Tue, 6 Feb 2024 13:56:05 +0000 (14:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Feb 2024 08:44:24 +0000 (09:44 +0100)
Closes #12880

lib/c-hyper.c

index d02ecd73a7be5d1bd90b802ce1d9dadd1b6fd073..845c179392a30042e0a72374cc69ca1b451d2c43 100644 (file)
@@ -54,6 +54,7 @@
 #include <hyper.h>
 #include "urldata.h"
 #include "sendf.h"
+#include "headers.h"
 #include "transfer.h"
 #include "multiif.h"
 #include "progress.h"
@@ -887,6 +888,13 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
   *done = TRUE;
   Curl_client_cleanup(data);
 
+  /* Add collecting of headers written to client. For a new connection,
+   * we might have done that already, but reuse
+   * or multiplex needs it here as well. */
+  result = Curl_headers_init(data);
+  if(result)
+    return result;
+
   infof(data, "Time for the Hyper dance");
   memset(h, 0, sizeof(struct hyptransfer));