Added HTTPS support for all Servarrs

This commit is contained in:
2024-11-02 18:32:44 -06:00
parent 76f22e7434
commit f6f477b124
9 changed files with 218 additions and 122 deletions
+7 -1
View File
@@ -2262,8 +2262,14 @@ impl<'a, 'b> Network<'a, 'b> {
host,
port,
api_token,
use_ssl,
..
} = &app.config.radarr;
let uri = format!("http://{host}:{}/api/v3{resource}", port.unwrap_or(7878));
let protocol = if *use_ssl { "https" } else { "http" };
let uri = format!(
"{protocol}://{host}:{}/api/v3{resource}",
port.unwrap_or(7878)
);
RequestProps {
uri,