Ben Copsey

GHUnit as direct dependency for Mac

@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 23
24 24
25 // Automatically set on build 25 // Automatically set on build
26 -NSString *ASIHTTPRequestVersion = @"v1.6-16 2010-03-19"; 26 +NSString *ASIHTTPRequestVersion = @"v1.6-17 2010-03-21";
27 27
28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
29 29
@@ -2693,7 +2693,8 @@ static BOOL isiPhoneOS2; @@ -2693,7 +2693,8 @@ static BOOL isiPhoneOS2;
2693 // This may occur when we've attempted to reuse a connection that should have been closed 2693 // This may occur when we've attempted to reuse a connection that should have been closed
2694 // If we get this, we need to retry the request 2694 // If we get this, we need to retry the request
2695 // We'll only do this once - if it happens again on retry, we'll give up 2695 // We'll only do this once - if it happens again on retry, we'll give up
2696 - if (([[underlyingError domain] isEqualToString:NSPOSIXErrorDomain] && [underlyingError code] == ENOTCONN) || ([[underlyingError domain] isEqualToString:(NSString *)kCFErrorDomainCFNetwork] && [underlyingError code] == kCFURLErrorNetworkConnectionLost)) { 2696 + // -1005 = kCFURLErrorNetworkConnectionLost - this doesn't seem to be declared on Mac OS 10.5
  2697 + if (([[underlyingError domain] isEqualToString:NSPOSIXErrorDomain] && [underlyingError code] == ENOTCONN) || ([[underlyingError domain] isEqualToString:(NSString *)kCFErrorDomainCFNetwork] && [underlyingError code] == -1005)) {
2697 if ([self retryUsingNewConnection]) { 2698 if ([self retryUsingNewConnection]) {
2698 return; 2699 return;
2699 } 2700 }
This diff was suppressed by a .gitattributes entry.