We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ff212 commit ca0c98eCopy full SHA for ca0c98e
native/swift/Sources/wordpress-api/SafeRequestExecutor.swift
@@ -72,6 +72,21 @@ final class WpRequestExecutor: SafeRequestExecutor {
72
abort() // TODO
73
}
74
75
+ if peerCertificateChain.isEmpty {
76
+ return .failure(
77
+ .RequestExecutionFailed(
78
+ statusCode: nil,
79
+ redirects: redirectTracker.redirects(for: request.requestId()),
80
+ reason: .invalidSslError(
81
+ siteCertificate: nil,
82
+ certificateChain: [],
83
+ errorMessage: error.localizedDescription,
84
+ suggestedAction: (error as NSError).localizedRecoverySuggestion
85
+ )
86
87
88
+ }
89
+
90
let siteCertificate = peerCertificateChain.remove(at: 0)
91
92
return .failure(
0 commit comments