mirror of
https://gitea.tendokyu.moe/beerpsi/Rizu.git
synced 2024-11-27 17:00:51 +01:00
Force Unity to accept all certificates
This commit is contained in:
parent
8bf09565bf
commit
ddf57a3640
@ -93,7 +93,7 @@ public class Exporter : SingletonMonoBehaviour<Exporter>
|
|||||||
using var certHandler = new ForceAcceptAllCertificateHandler();
|
using var certHandler = new ForceAcceptAllCertificateHandler();
|
||||||
req.method = UnityWebRequest.kHttpVerbPOST;
|
req.method = UnityWebRequest.kHttpVerbPOST;
|
||||||
req.timeout = _config.NetworkTimeout;
|
req.timeout = _config.NetworkTimeout;
|
||||||
// req.certificateHandler = certHandler;
|
req.certificateHandler = certHandler;
|
||||||
req.uploadHandler = new UploadHandlerRaw(new UTF8Encoding().GetBytes(import));
|
req.uploadHandler = new UploadHandlerRaw(new UTF8Encoding().GetBytes(import));
|
||||||
req.downloadHandler = new DownloadHandlerBuffer();
|
req.downloadHandler = new DownloadHandlerBuffer();
|
||||||
req.SetRequestHeader("Content-Type", "application/json");
|
req.SetRequestHeader("Content-Type", "application/json");
|
||||||
|
Loading…
Reference in New Issue
Block a user