diefferson / http_certificate_pinning

Https Certificate pinning for Flutter
Apache License 2.0
83 stars 70 forks source link

Fix: fixed an unnecessary certificate validation check for dio interceptor #63

Closed latygin closed 5 months ago

latygin commented 6 months ago

This causes unnecessary certificate checking. And besides it leads to throwing unhandled exceptions that will not be handled by try/catch block:

      secure?.whenComplete(() => secure = null);
      final secureString = await secure ?? '';