Closed BVCobyAmar closed 10 months ago
This issue is easy to fix and can help solve problems with missed errors. The issue is that because of adding the whenComplete function to the secure param instead of chaining it inline. Here is an example of my fix: String resp = '';
whenComplete
secure
secure = HttpCertificatePinning.check( serverURL: options.baseUrl, headerHttp: options.headers.map((a, b) => MapEntry(a, b.toString())), sha: SHA.SHA256, allowedSHAFingerprints: _allowedSHAFingerprints, timeout: _timeout, ).whenComplete(() => secure = null);
@BVCobyAmar Could you give more details about how can I reproduce this issue?
This issue is easy to fix and can help solve problems with missed errors. The issue is that because of adding the
whenComplete
function to thesecure
param instead of chaining it inline. Here is an example of my fix: String resp = '';