From 6c179ceb95d94ddc5d00ee5b0cbae02dd6119abf Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 30 Mar 2025 18:27:52 +0800 Subject: [PATCH] Add UA to WebDav requests. Close #308 --- lib/utils/data_sync.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/data_sync.dart b/lib/utils/data_sync.dart index 04cf28b..781149e 100644 --- a/lib/utils/data_sync.dart +++ b/lib/utils/data_sync.dart @@ -100,6 +100,7 @@ class DataSync with ChangeNotifier { rhttp.ClientSettings( proxySettings: proxy == null ? null : rhttp.ProxySettings.proxy(proxy), + userAgent: "venera v${App.version}", ), ), ); @@ -172,6 +173,7 @@ class DataSync with ChangeNotifier { rhttp.ClientSettings( proxySettings: proxy == null ? null : rhttp.ProxySettings.proxy(proxy), + userAgent: "venera v${App.version}", ), ), );