Skip to content

Commit

Permalink
Add debug for cert issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Nov 27, 2024
1 parent f886b68 commit 21c050e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class MyHttpOverrides extends HttpOverrides {
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..badCertificateCallback = (X509Certificate cert, String host, int port) {
print('## Comparing ${this.host} to $host');
return this.host == host;
};
}
Expand Down

0 comments on commit 21c050e

Please sign in to comment.