From e925d0d1ff1df3764fc332853970f01ce9961dfc Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 6 Feb 2024 14:56:05 +0100 Subject: [PATCH] c-hyper: add header collection writer in hyper builds Closes #12880 --- lib/c-hyper.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/c-hyper.c b/lib/c-hyper.c index d02ecd73a7..845c179392 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -54,6 +54,7 @@ #include #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)); -- 2.47.3