[swift6] add credentials by default (#19885)

This commit is contained in:
Bruno Coelho
2024-10-16 13:38:49 +01:00
committed by GitHub
parent 0a39a1760e
commit 38dac13c26
14 changed files with 28 additions and 28 deletions

View File

@@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient
addHeaders(openAPIClient.customHeaders)
addCredential()
}
open func addHeaders(_ aHeaders: [String: String]) {
@@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}
open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}