2
0
mirror of https://github.com/inventree/inventree-app.git synced 2026-07-04 03:40:41 +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:
Oliver
2026-06-17 10:47:04 +10:00
committed by GitHub
parent 04c654b438
commit 4bde91a234
+6 -1
View File
@@ -1193,7 +1193,12 @@ class InvenTreeAPI {
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();
client.badCertificateCallback =