Skip to content

Commit 39509da

Browse files
committed
fix(RESTConnector): Added ifdef for certificate handler operations
1 parent 499e595 commit 39509da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Scripts/Connection/RESTConnector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ private IEnumerator ProcessRequestQueue()
527527

528528
unityWebRequest.downloadHandler = new DownloadHandlerBuffer();
529529

530+
#if NET_4_6
531+
530532
if (req.DisableSslVerification)
531533
{
532534
unityWebRequest.certificateHandler = new AcceptAllCertificates();
@@ -535,7 +537,7 @@ private IEnumerator ProcessRequestQueue()
535537
{
536538
unityWebRequest.certificateHandler = null;
537539
}
538-
540+
#endif
539541
#if UNITY_2017_2_OR_NEWER
540542
unityWebRequest.SendWebRequest();
541543
#else
@@ -661,11 +663,13 @@ private IEnumerator ProcessRequestQueue()
661663
#endregion
662664
}
663665

666+
#if NET_4_6
664667
class AcceptAllCertificates : CertificateHandler
665668
{
666669
protected override bool ValidateCertificate(byte[] certificateData)
667670
{
668671
return true;
669672
}
670673
}
674+
#endif
671675
}

Scripts/Services/Assistant/v2/Models/MessageOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class MessageOutput
5656
/// Arbitrary variables that can be read and written to by a particular skill within the Assistant.
5757
/// </summary>
5858
[fsProperty("user_defined")]
59-
public dynamic UserDefined { get; set; }
59+
public object UserDefined { get; set; }
6060
}
6161

6262
}

0 commit comments

Comments
 (0)