(fix) use PEEK when fetching attachments using ItemOperations

This commit is contained in:
Ludovic Marcotte
2016-06-01 08:52:56 -04:00
parent c773717f05
commit 804ebaf8b9

View File

@@ -1438,7 +1438,7 @@ void handle_eas_terminate(int signum)
if ([[theResponse headerForKey: @"Content-Type"] isEqualToString:@"application/vnd.ms-sync.multipart"])
{
NSData *d;
d = [currentBodyPart fetchBLOB];
d = [currentBodyPart fetchBLOBWithPeek: YES];
[s appendFormat: @"<Part>%d</Part>", i+1];
[partLength addObject: [NSNumber numberWithInteger: [d length]]];