Skip to content

Commit

Permalink
Bug fix: Calling progress handler with _total_ number of bytes written.
Browse files Browse the repository at this point in the history
  • Loading branch information
anagromataf committed Aug 18, 2011
1 parent bc9fbb6 commit 56ce675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OAuth2Client/NXOAuth2Connection.m
Expand Up @@ -532,7 +532,7 @@ - (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)byte
[delegate oauthConnection:self didSendBytes:totalBytesWritten ofTotal:totalBytesExpectedToWrite];
}

if (sendingProgressHandler) sendingProgressHandler(bytesWritten, totalBytesExpectedToWrite);
if (sendingProgressHandler) sendingProgressHandler(totalBytesWritten, totalBytesExpectedToWrite);
}

- (NSInputStream *)connection:(NSURLConnection *)connection needNewBodyStream:(NSURLRequest *)aRequest;
Expand Down

0 comments on commit 56ce675

Please sign in to comment.