Update download system

增加证书认证方法
This commit is contained in:
hevinci
2022-10-21 15:18:16 +08:00
parent a6de89ab74
commit f9ecad1cf0
3 changed files with 23 additions and 1 deletions
@@ -89,6 +89,12 @@ namespace YooAsset
_downloadHandle = handler;
#endif
if (DownloadSystem.CertificateHandlerInstance != null)
{
_webRequest.certificateHandler = DownloadSystem.CertificateHandlerInstance;
_webRequest.disposeCertificateHandlerOnDispose = false;
}
_webRequest.downloadHandler = handler;
_webRequest.disposeDownloadHandlerOnDispose = true;
if (fileLength > 0)