diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-02-18 17:41:43 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-02-19 11:53:06 -0700 |
commit | 7750404222a7c5bb6543dd246c2cce0f7c097d8d (patch) | |
tree | 823bb221de9413cfad1a7d5999e4045cd7dee160 /src/libs/dutil/WixToolset.DUtil/dlutil.cpp | |
parent | f322cf875bf9a02c9ab7518b2c48ec11d91f5531 (diff) | |
download | wix-7750404222a7c5bb6543dd246c2cce0f7c097d8d.tar.gz wix-7750404222a7c5bb6543dd246c2cce0f7c097d8d.tar.bz2 wix-7750404222a7c5bb6543dd246c2cce0f7c097d8d.zip |
Ignore HEAD request failure in dlutil's DownloadUrl.
Fixes #6331
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/dlutil.cpp')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/dlutil.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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( | |||
158 | 158 | ||
159 | // Get the resource size and creation time from the internet. | 159 | // Get the resource size and creation time from the internet. |
160 | hr = GetResourceMetadata(hSession, &sczUrl, pDownloadSource->sczUser, pDownloadSource->sczPassword, pAuthenticate, &dw64Size, &ftCreated); | 160 | hr = GetResourceMetadata(hSession, &sczUrl, pDownloadSource->sczUser, pDownloadSource->sczPassword, pAuthenticate, &dw64Size, &ftCreated); |
161 | DlExitOnFailure(hr, "Failed to get size and time for URL: %ls", sczUrl); | 161 | if (FAILED(hr)) |
162 | { | ||
163 | LogStringLine(REPORT_VERBOSE, "Ignoring failure to get size and time for URL: %ls (error 0x%x)", sczUrl, hr); | ||
164 | } | ||
162 | 165 | ||
163 | // Ignore failure to initialize resume because we will fall back to full download then | 166 | // Ignore failure to initialize resume because we will fall back to full download then |
164 | // download. | 167 | // download. |