Skip to content

Commit 5cc6761

Browse files
committed
feat: warn apple
1 parent b15bc25 commit 5cc6761

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/apple/Sources/Client.swift.twig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ open class Client {
278278
timeout: .seconds(30)
279279
)
280280

281+
let warnings = response.headers["x-{{ spec.title | lower }}-warning"].first
282+
if warnings != nil {
283+
warnings!.split(separator: ";").forEach { warning in
284+
print("Warning: \(warning)")
285+
}
286+
}
287+
288+
281289
switch response.status.code {
282290
case 0..<400:
283291
if response.headers["Set-Cookie"].count > 0 {

0 commit comments

Comments
 (0)