mirror of
https://github.com/inventree/inventree-app.git
synced 2026-07-04 11:50:45 +00:00
Adjust "default" value for strictHttps (#835)
Note: all calls to this function override the default, so this is *not* a functional change
This commit is contained in:
+6
-1
@@ -1193,7 +1193,12 @@ class InvenTreeAPI {
|
|||||||
return response.isValid() && response.statusCode == 200;
|
return response.isValid() && response.statusCode == 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpClient createClient(String url, {bool strictHttps = false}) {
|
/*
|
||||||
|
* Create a new HttpClient, with the appropriate certificate handling
|
||||||
|
* Note that for some instances, we may wish to ignore certificate errors (e.g. self-signed certificates)
|
||||||
|
* In this case, we will allow the user to disable "strict HTTPS" mode
|
||||||
|
*/
|
||||||
|
HttpClient createClient(String url, {bool strictHttps = true}) {
|
||||||
var client = HttpClient();
|
var client = HttpClient();
|
||||||
|
|
||||||
client.badCertificateCallback =
|
client.badCertificateCallback =
|
||||||
|
|||||||
Reference in New Issue
Block a user