Ben Copsey

Fix GH issue 35 - updating wrong progress delegate in removeUploadProgressSoFar …

…/ incrementDownloadSizeBy
@@ -1382,7 +1382,7 @@ static BOOL isiPhoneOS2; @@ -1382,7 +1382,7 @@ static BOOL isiPhoneOS2;
1382 - (void)incrementDownloadSizeBy:(long long)length 1382 - (void)incrementDownloadSizeBy:(long long)length
1383 { 1383 {
1384 [ASIHTTPRequest performSelector:@selector(request:incrementDownloadSizeBy:) onTarget:[self queue] withObject:self amount:&length]; 1384 [ASIHTTPRequest performSelector:@selector(request:incrementDownloadSizeBy:) onTarget:[self queue] withObject:self amount:&length];
1385 - [ASIHTTPRequest performSelector:@selector(request:incrementDownloadSizeBy:) onTarget:[self uploadProgressDelegate] withObject:self amount:&length]; 1385 + [ASIHTTPRequest performSelector:@selector(request:incrementDownloadSizeBy:) onTarget:[self downloadProgressDelegate] withObject:self amount:&length];
1386 } 1386 }
1387 1387
1388 1388
@@ -1397,7 +1397,7 @@ static BOOL isiPhoneOS2; @@ -1397,7 +1397,7 @@ static BOOL isiPhoneOS2;
1397 { 1397 {
1398 long long progressToRemove = -[self totalBytesSent]; 1398 long long progressToRemove = -[self totalBytesSent];
1399 [ASIHTTPRequest performSelector:@selector(request:didSendBytes:) onTarget:[self queue] withObject:self amount:&progressToRemove]; 1399 [ASIHTTPRequest performSelector:@selector(request:didSendBytes:) onTarget:[self queue] withObject:self amount:&progressToRemove];
1400 - [ASIHTTPRequest performSelector:@selector(request:didSendBytes:) onTarget:[self downloadProgressDelegate] withObject:self amount:&progressToRemove]; 1400 + [ASIHTTPRequest performSelector:@selector(request:didSendBytes:) onTarget:[self uploadProgressDelegate] withObject:self amount:&progressToRemove];
1401 [ASIHTTPRequest updateProgressIndicator:[self uploadProgressDelegate] withProgress:0 ofTotal:[self postLength]]; 1401 [ASIHTTPRequest updateProgressIndicator:[self uploadProgressDelegate] withProgress:0 ofTotal:[self postLength]];
1402 } 1402 }
1403 1403