c-hyper: add header collection writer in hyper builds

Closes #12880
This commit is contained in:
Stefan Eissing 2024-02-06 14:56:05 +01:00 committed by Daniel Stenberg
parent 2abfa3833b
commit e925d0d1ff
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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));