Browse Source

Fixing authentication

Mattt Thompson 11 years ago
parent
commit
85cfa68448
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Alamofire.swift

+ 1 - 1
Source/Alamofire.swift

@@ -589,7 +589,7 @@ public class Request {
                     case NSURLAuthenticationMethodServerTrust:
                     case NSURLAuthenticationMethodServerTrust:
                         credential = NSURLCredential(forTrust: challenge.protectionSpace.serverTrust)
                         credential = NSURLCredential(forTrust: challenge.protectionSpace.serverTrust)
                     default:
                     default:
-                        credential = credential ?? session.configuration.URLCredentialStorage?.defaultCredentialForProtectionSpace(challenge.protectionSpace)
+                        credential = self.credential ?? session.configuration.URLCredentialStorage?.defaultCredentialForProtectionSpace(challenge.protectionSpace)
                     }
                     }
 
 
                     if credential != nil {
                     if credential != nil {