We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c13dce commit a8e2c3eCopy full SHA for a8e2c3e
src/Tinify/Client.cs
@@ -33,8 +33,10 @@ internal sealed class ErrorData
33
34
public Client(string key, string appIdentifier = null, string proxy = null)
35
{
36
- var handler = new HttpClientHandler()
+ var handler = new HttpClientHandler();
37
+ if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
38
39
+ // TLS is extremely spotty and differs per version on MacOS
40
ServerCertificateCustomValidationCallback = Internal.SSL.ValidationCallback
41
};
42
0 commit comments