From 754e3f4f8c561a2a5c8eaf8901ec0544b7aaa859 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 4 May 2020 18:29:46 +0100 Subject: [PATCH] curl: Pass cert chain on even if we get no headers Signed-off-by: Daniel Silverstone --- content/fetchers/curl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 525c15885..f7b3b04f2 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -1310,6 +1310,10 @@ static void fetch_curl_done(CURL *curl_handle, CURLcode result) fetch_curl_stop(f); + if (f->sent_ssl_chain == false) { + fetch_curl_report_certs_upstream(f); + } + if (abort_fetch) { ; /* fetch was aborted: no callback */ } else if (finished) {