feat: Created a separate 'ssl' property for the config so users don't have to specify an ssl_cert_path to use SSL or use the uri workaround for HTTPS API access

This commit is contained in:
2026-03-29 12:39:26 -06:00
parent 2e339dd73b
commit bbcd3f00a9
12 changed files with 193 additions and 11 deletions
+2 -1
View File
@@ -229,6 +229,7 @@ impl<'a, 'b> Network<'a, 'b> {
uri,
api_token,
ssl_cert_path,
ssl,
custom_headers: custom_headers_option,
..
} = app
@@ -245,7 +246,7 @@ impl<'a, 'b> Network<'a, 'b> {
let mut uri = if let Some(servarr_uri) = uri {
format!("{servarr_uri}/api/{api_version}{resource}")
} else {
let protocol = if ssl_cert_path.is_some() {
let protocol = if ssl_cert_path.is_some() || ssl.unwrap_or(false) {
"https"
} else {
"http"