From 5278fdd4a157fcb9f418b39805a1275013f4c7f2 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 12 Oct 2022 12:46:10 +0800 Subject: [PATCH] Set the X-OmnivoreClient request header --- .../Services/DataService/Networking/ServerResource.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Networking/ServerResource.swift b/apple/OmnivoreKit/Sources/Services/DataService/Networking/ServerResource.swift index 4bf7f11df..0c4698cbb 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Networking/ServerResource.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Networking/ServerResource.swift @@ -65,7 +65,8 @@ extension URLRequest { var headers = [ "content-type": "application/json", "user-agent": userAgent, - "app-language": Locale.preferredLanguages[0] + "app-language": Locale.preferredLanguages[0], + "X-OmnivoreClient": "ios" ] if let deviceLanguage = NSLocale.current.languageCode {