Add User-Agent to request

We generate a User-Agent for the platform we are running on and add it to the URLTester requests and also to MPV and AVPlayer
This commit is contained in:
Toni Förster
2024-05-19 13:37:50 +02:00
parent 90777d91f6
commit 2e9cceafa5
7 changed files with 46 additions and 3 deletions

View File

@@ -206,6 +206,9 @@ struct YatteeApp: App {
}
#endif
// Initialize UserAgentManager
_ = UserAgentManager.shared
DispatchQueue.global(qos: .userInitiated).async {
URLBookmarkModel.shared.refreshAll()
}