Skip to content

Commit

Permalink
use header key rather than hardcoded number for error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
vickeryj committed Dec 31, 2008
1 parent bbb148d commit 106738d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/lib/Response.m
Expand Up @@ -19,7 +19,7 @@ + (id)responseFrom:(NSHTTPURLResponse *)response withBody:(NSData *)data andErro

- (void)normalizeError:(NSError *)aError {
switch ([aError code]) {
case -1012:
case NSURLErrorUserCancelledAuthentication:
self.statusCode = 401;
self.error = [NSHTTPURLResponse buildResponseError:401];
break;
Expand Down

0 comments on commit 106738d

Please sign in to comment.