We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3793ed3 + d1109c5 commit 5fd172eCopy full SHA for 5fd172e
Sources/Pam/HttpClient.swift
@@ -46,6 +46,7 @@ enum HttpClient {
46
headers?.forEach {
47
request.addValue($0.value, forHTTPHeaderField: $0.key)
48
}
49
+ request.addValue("ios", forHTTPHeaderField: "platform")
50
51
if let json = json {
52
request.httpBody = try? JSONSerialization.data(withJSONObject: json, options: [])
@@ -87,13 +88,12 @@ enum HttpClient {
87
88
89
90
91
92
-
93
if Pam.shared.isEnableLog {
94
print("🛺 Request GET: ", request.curlString )
95
96
97
let session = URLSession.shared
98
session.dataTask(with: request) { data, _, error in
99
if error == nil, let data = data {
0 commit comments