diefferson / http_certificate_pinning

Https Certificate pinning for Flutter
Apache License 2.0
84 stars 71 forks source link

iOS + Dio: Parallel requests failing. #17

Closed thelonecabbage closed 2 years ago

thelonecabbage commented 2 years ago
var http = new Dio();
    http.interceptors
        .add(CertificatePinningInterceptor(allowedSHAFingerprints));
    var future1 = http.get('https://...');
    var future2 = http.get('https://...');
    var future3 = http.get('https://...');

only future3 will return with data.

https://github.com/diefferson/http_certificate_pinning/pull/16

thelonecabbage commented 2 years ago

added this PR to fix the issue

https://github.com/diefferson/http_certificate_pinning/pull/16