From 7750404222a7c5bb6543dd246c2cce0f7c097d8d Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 18 Feb 2022 17:41:43 -0600 Subject: Ignore HEAD request failure in dlutil's DownloadUrl. Fixes #6331 --- src/libs/dutil/WixToolset.DUtil/dlutil.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libs/dutil/WixToolset.DUtil/dlutil.cpp') diff --git a/src/libs/dutil/WixToolset.DUtil/dlutil.cpp b/src/libs/dutil/WixToolset.DUtil/dlutil.cpp index 70155e6f..f6b793b2 100644 --- a/src/libs/dutil/WixToolset.DUtil/dlutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/dlutil.cpp @@ -158,7 +158,10 @@ extern "C" HRESULT DAPI DownloadUrl( // Get the resource size and creation time from the internet. hr = GetResourceMetadata(hSession, &sczUrl, pDownloadSource->sczUser, pDownloadSource->sczPassword, pAuthenticate, &dw64Size, &ftCreated); - DlExitOnFailure(hr, "Failed to get size and time for URL: %ls", sczUrl); + if (FAILED(hr)) + { + LogStringLine(REPORT_VERBOSE, "Ignoring failure to get size and time for URL: %ls (error 0x%x)", sczUrl, hr); + } // Ignore failure to initialize resume because we will fall back to full download then // download. -- cgit v1.2.3-55-g6feb