Skip to content

Commit

Permalink
Don't retain session (after switching accounts)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-schliephake committed Jan 25, 2021
1 parent 7e4d94c commit 5f723d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Shared/Utilities/NCPasswordsRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ extension NCPasswordsRequest {
request.httpMethod = method
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("Basic \(authorizationData.base64EncodedString())", forHTTPHeaderField: "Authorization")
request.httpShouldHandleCookies = false
request.httpBody = encode()

URLSession(configuration: .default, delegate: nil, delegateQueue: .main).dataTask(with: request) {
Expand Down

0 comments on commit 5f723d2

Please sign in to comment.