From: Stefan Eissing Date: Tue, 6 Feb 2024 13:56:05 +0000 (+0100) Subject: c-hyper: add header collection writer in hyper builds X-Git-Tag: curl-8_7_0~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e925d0d1ff1df3764fc332853970f01ce9961dfc;p=thirdparty%2Fcurl.git c-hyper: add header collection writer in hyper builds Closes #12880 --- 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));