📜  颤动未处理的异常:握手异常:客户端中的握手错误 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:47.302000             🧑  作者: Mango

代码示例2
class MyHttpOverrides extends HttpOverrides{
  @override
  HttpClient createHttpClient(SecurityContext context){
    return super.createHttpClient(context)
      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;
  }
}