Skip to content

Commit

Permalink
[Refactoring] Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
joerghartmann committed Dec 23, 2024
1 parent d4850ef commit cf715d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public class URLRequestBuilder {
}

@discardableResult
public func set(authorization userName: String, password: String) -> URLRequestBuilder {
let credentials = "\(userName):\(password)"
public func set(authorization userName: String, password: String) -> URLRequestBuilder {
let credentials = "\(userName):\(password)"
if let encodedCredentials = credentials.data(using: .utf8) {
self.requestHeaders["Authorization"] = "Basic " + encodedCredentials.base64EncodedString()
}
Expand Down

0 comments on commit cf715d9

Please sign in to comment.