π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
rust: gate user agent on wasm
Neeraj Gupta608ad775be33
diff --git a/rust/core/src/http.rs b/rust/core/src/http.rsindex bf6dac50eb..5e978369f9 100644--- a/rust/core/src/http.rs+++ b/rust/core/src/http.rs@@ -265,6 +265,7 @@ pub struct HttpClient {base_url: String,base_origin: Option<Url>,auth_token: RwLock<Option<Zeroizing<String>>>,+ #[cfg(not(target_arch = "wasm32"))]user_agent: Option<String>,client_package: Option<String>,client_version: Option<String>,@@ -322,6 +323,7 @@ impl HttpClient {base_url,base_origin,auth_token: RwLock::new(config.auth_token.map(Zeroizing::new)),+ #[cfg(not(target_arch = "wasm32"))]user_agent: config.user_agent,client_package: config.client_package,client_version: config.client_version,