[swift5] add credentials by default (#19906)

This commit is contained in:
Bruno Coelho
2024-10-18 10:38:27 +01:00
committed by GitHub
parent f6c0b4ad6b
commit c6dbf0870c
12 changed files with 24 additions and 24 deletions

View File

@@ -36,6 +36,7 @@ open class RequestBuilder<T> {
self.requiresAuthentication = requiresAuthentication
addHeaders(PetstoreClientAPI.customHeaders)
addCredential()
}
open func addHeaders(_ aHeaders: [String: String]) {
@@ -81,9 +82,8 @@ open class RequestBuilder<T> {
return self
}
open func addCredential() -> Self {
open func addCredential() {
credential = PetstoreClientAPI.credential
return self
}
}