forked from loafle/openapi-generator-original
[swift6] add credentials by default (#19885)
This commit is contained in:
@@ -83,6 +83,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
|
||||
self.openAPIClient = openAPIClient
|
||||
|
||||
addHeaders(openAPIClient.customHeaders)
|
||||
addCredential()
|
||||
}
|
||||
|
||||
open func addHeaders(_ aHeaders: [String: String]) {
|
||||
@@ -138,9 +139,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
|
||||
return self
|
||||
}
|
||||
|
||||
open func addCredential() -> Self {
|
||||
open func addCredential() {
|
||||
credential = openAPIClient.credential
|
||||
return self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user