Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Handle HTTP digest auth correctly in TDRemoteRequest
Browse files Browse the repository at this point in the history
Fixes #269
  • Loading branch information
snej committed Jul 15, 2013
1 parent bf06d1d commit 5eebe0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/TDRemoteRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ - (void)connection:(NSURLConnection *)connection
NSURLProtectionSpace* space = challenge.protectionSpace;
NSString* authMethod = space.authenticationMethod;
LogTo(RemoteRequest, @"Got challenge for %@: method=%@, proposed=%@, err=%@", self, authMethod, challenge.proposedCredential, challenge.error);
if ($equal(authMethod, NSURLAuthenticationMethodHTTPBasic)) {
if ($equal(authMethod, NSURLAuthenticationMethodHTTPBasic) ||
$equal(authMethod, NSURLAuthenticationMethodHTTPDigest)) {
_challenged = true;
_authorizer = nil;
if (challenge.previousFailureCount <= 1) {
Expand Down

0 comments on commit 5eebe0f

Please sign in to comment.