Many improvemtns and fixes related to decoupling of svelte and rust on android.
This commit is contained in:
@@ -20,6 +20,7 @@ impl JellyfinClient {
|
||||
pub fn new(config: JellyfinConfig) -> Result<Self, String> {
|
||||
let http_client = Client::builder()
|
||||
.timeout(std::time::Duration::from_secs(10))
|
||||
.https_only(true)
|
||||
.build()
|
||||
.map_err(|e| format!("Failed to create HTTP client: {}", e))?;
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ impl HttpClient {
|
||||
pub fn new(config: HttpConfig) -> Result<Self, String> {
|
||||
let client = Client::builder()
|
||||
.timeout(config.timeout)
|
||||
.https_only(true)
|
||||
.build()
|
||||
.map_err(|e| format!("Failed to create HTTP client: {}", e))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user