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