summaryrefslogtreecommitdiff
path: root/Hutch/Networking/SystemStatusService.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Networking/SystemStatusService.swift')
-rw-r--r--Hutch/Networking/SystemStatusService.swift9
1 files changed, 1 insertions, 8 deletions
diff --git a/Hutch/Networking/SystemStatusService.swift b/Hutch/Networking/SystemStatusService.swift
index ec2d233..35b82a1 100644
--- a/Hutch/Networking/SystemStatusService.swift
+++ b/Hutch/Networking/SystemStatusService.swift
@@ -60,14 +60,7 @@ struct SystemStatusService: Sendable {
return data
}
- private var userAgent: String {
- let bundle = Bundle.main
- let name = (bundle.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String)
- ?? (bundle.object(forInfoDictionaryKey: "CFBundleName") as? String)
- ?? "Hutch"
- let version = (bundle.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String) ?? "dev"
- return "\(name)/\(version) (System Status)"
- }
+ private var userAgent: String { Bundle.main.hutchUserAgent }
}
extension SystemStatusService: SystemStatusServing {}