Merge branch 'master' into newgzipstuff
Also add missing files to iPhone project Conflicts: Classes/ASIHTTPRequest.m
Showing
4 changed files
with
17 additions
and
10 deletions
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | #import "ASIDataCompressor.h" | 24 | #import "ASIDataCompressor.h" |
25 | 25 | ||
26 | // Automatically set on build | 26 | // Automatically set on build |
27 | -NSString *ASIHTTPRequestVersion = @"v1.7-44 2010-08-18"; | 27 | +NSString *ASIHTTPRequestVersion = @"v1.7-45 2010-08-18"; |
28 | 28 | ||
29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
30 | 30 | ||
@@ -366,7 +366,6 @@ static NSOperationQueue *sharedQueue = nil; | @@ -366,7 +366,6 @@ static NSOperationQueue *sharedQueue = nil; | ||
366 | [super dealloc]; | 366 | [super dealloc]; |
367 | } | 367 | } |
368 | 368 | ||
369 | - | ||
370 | #pragma mark setup request | 369 | #pragma mark setup request |
371 | 370 | ||
372 | - (void)addRequestHeader:(NSString *)header value:(NSString *)value | 371 | - (void)addRequestHeader:(NSString *)header value:(NSString *)value |
@@ -1069,7 +1068,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -1069,7 +1068,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
1069 | // Check if we should have expired this connection | 1068 | // Check if we should have expired this connection |
1070 | } else if ([[[self connectionInfo] objectForKey:@"expires"] timeIntervalSinceNow] < 0) { | 1069 | } else if ([[[self connectionInfo] objectForKey:@"expires"] timeIntervalSinceNow] < 0) { |
1071 | #if DEBUG_PERSISTENT_CONNECTIONS | 1070 | #if DEBUG_PERSISTENT_CONNECTIONS |
1072 | - NSLog(@"Not re-using connection #%hi because it has expired",[[[self connectionInfo] objectForKey:@"id"] intValue]); | 1071 | + NSLog(@"Not re-using connection #%i because it has expired",[[[self connectionInfo] objectForKey:@"id"] intValue]); |
1073 | #endif | 1072 | #endif |
1074 | [persistentConnectionsPool removeObject:[self connectionInfo]]; | 1073 | [persistentConnectionsPool removeObject:[self connectionInfo]]; |
1075 | [self setConnectionInfo:nil]; | 1074 | [self setConnectionInfo:nil]; |
@@ -1114,7 +1113,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -1114,7 +1113,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
1114 | CFReadStreamSetProperty((CFReadStreamRef)[self readStream], kCFStreamPropertyHTTPAttemptPersistentConnection, kCFBooleanTrue); | 1113 | CFReadStreamSetProperty((CFReadStreamRef)[self readStream], kCFStreamPropertyHTTPAttemptPersistentConnection, kCFBooleanTrue); |
1115 | 1114 | ||
1116 | #if DEBUG_PERSISTENT_CONNECTIONS | 1115 | #if DEBUG_PERSISTENT_CONNECTIONS |
1117 | - NSLog(@"Request #%@ will use connection #%hi",[self requestID],[[[self connectionInfo] objectForKey:@"id"] intValue]); | 1116 | + NSLog(@"Request #%@ will use connection #%i",[self requestID],[[[self connectionInfo] objectForKey:@"id"] intValue]); |
1118 | #endif | 1117 | #endif |
1119 | 1118 | ||
1120 | 1119 | ||
@@ -1869,7 +1868,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -1869,7 +1868,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
1869 | [self setRequestCookies:[NSMutableArray array]]; | 1868 | [self setRequestCookies:[NSMutableArray array]]; |
1870 | 1869 | ||
1871 | #if DEBUG_REQUEST_STATUS | 1870 | #if DEBUG_REQUEST_STATUS |
1872 | - NSLog(@"Request will redirect (code: %hi): %@",[self responseStatusCode],self); | 1871 | + NSLog(@"Request will redirect (code: %i): %@",[self responseStatusCode],self); |
1873 | #endif | 1872 | #endif |
1874 | 1873 | ||
1875 | } | 1874 | } |
@@ -2766,7 +2765,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -2766,7 +2765,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
2766 | { | 2765 | { |
2767 | 2766 | ||
2768 | #if DEBUG_REQUEST_STATUS | 2767 | #if DEBUG_REQUEST_STATUS |
2769 | - NSLog(@"Request %@ finished downloading data",self); | 2768 | + NSLog(@"Request %@ finished downloading data (%qu bytes)",self, [self totalBytesRead]); |
2770 | #endif | 2769 | #endif |
2771 | 2770 | ||
2772 | [self setDownloadComplete:YES]; | 2771 | [self setDownloadComplete:YES]; |
@@ -3183,7 +3182,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -3183,7 +3182,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
3183 | NSDictionary *existingConnection = [persistentConnectionsPool objectAtIndex:i]; | 3182 | NSDictionary *existingConnection = [persistentConnectionsPool objectAtIndex:i]; |
3184 | if (![existingConnection objectForKey:@"request"] && [[existingConnection objectForKey:@"expires"] timeIntervalSinceNow] <= 0) { | 3183 | if (![existingConnection objectForKey:@"request"] && [[existingConnection objectForKey:@"expires"] timeIntervalSinceNow] <= 0) { |
3185 | #if DEBUG_PERSISTENT_CONNECTIONS | 3184 | #if DEBUG_PERSISTENT_CONNECTIONS |
3186 | - NSLog(@"Closing connection #%hi because it has expired",[[existingConnection objectForKey:@"id"] intValue]); | 3185 | + NSLog(@"Closing connection #%i because it has expired",[[existingConnection objectForKey:@"id"] intValue]); |
3187 | #endif | 3186 | #endif |
3188 | NSInputStream *stream = [existingConnection objectForKey:@"stream"]; | 3187 | NSInputStream *stream = [existingConnection objectForKey:@"stream"]; |
3189 | if (stream) { | 3188 | if (stream) { |
@@ -3476,8 +3475,8 @@ static NSOperationQueue *sharedQueue = nil; | @@ -3476,8 +3475,8 @@ static NSOperationQueue *sharedQueue = nil; | ||
3476 | 3475 | ||
3477 | + (NSString *)defaultUserAgentString | 3476 | + (NSString *)defaultUserAgentString |
3478 | { | 3477 | { |
3479 | - NSBundle *bundle = [NSBundle mainBundle]; | 3478 | + NSBundle *bundle = [NSBundle bundleForClass:[self class]]; |
3480 | - | 3479 | + |
3481 | // Attempt to find a name for this application | 3480 | // Attempt to find a name for this application |
3482 | NSString *appName = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; | 3481 | NSString *appName = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; |
3483 | if (!appName) { | 3482 | if (!appName) { |
@@ -2,6 +2,7 @@ ASIHTTPRequest donors: | @@ -2,6 +2,7 @@ ASIHTTPRequest donors: | ||
2 | 2 | ||
3 | Stephan Burlot (http://www.coriolis.ch) | 3 | Stephan Burlot (http://www.coriolis.ch) |
4 | Jack Cardinal (http://www.intomotion.com) | 4 | Jack Cardinal (http://www.intomotion.com) |
5 | +Wonki Chung | ||
5 | Matt Coneybeare (http://urbanapps.com) | 6 | Matt Coneybeare (http://urbanapps.com) |
6 | Connected Bits LLC (http://www.connectedbits.com) | 7 | Connected Bits LLC (http://www.connectedbits.com) |
7 | Nathan de Vries (http://www.atnan.com) | 8 | Nathan de Vries (http://www.atnan.com) |
This diff was suppressed by a .gitattributes entry.
-
Please register or login to post a comment