File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/apidash_core/lib/services Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import 'package:http/io_client.dart';
5
5
6
6
http.Client createHttpClientWithNoSSL () {
7
7
var ioClient = HttpClient ()
8
- ..badCertificateCallback = (X509Certificate cert, String host, int port) => true ;
8
+ ..badCertificateCallback =
9
+ (X509Certificate cert, String host, int port) => true ;
9
10
return IOClient (ioClient);
10
11
}
11
12
@@ -21,8 +22,11 @@ class HttpClientManager {
21
22
22
23
HttpClientManager ._internal ();
23
24
24
- http.Client createClient (String requestId, {bool noSSL = false }) {
25
- final client = (noSSL && ! kIsWeb) ? createHttpClientWithNoSSL () : http.Client ();
25
+ http.Client createClient (
26
+ String requestId,
27
+ {bool noSSL = false }) {
28
+ final client =
29
+ (noSSL && ! kIsWeb) ? createHttpClientWithNoSSL () : http.Client ();
26
30
_clients[requestId] = client;
27
31
return client;
28
32
}
You can’t perform that action at this time.
0 commit comments