diff --git a/ActiveSync/SOGoActiveSyncDispatcher.m b/ActiveSync/SOGoActiveSyncDispatcher.m index 50a7e3613..921ba808c 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -1220,7 +1220,7 @@ void handle_eas_terminate(int signum) [theResponse setHeader: [NSString stringWithFormat: @"%@/%@", [[currentBodyPart partInfo] objectForKey: @"type"], [[currentBodyPart partInfo] objectForKey: @"subtype"]] forKey: @"Content-Type"]; - [theResponse setContent: [currentBodyPart fetchBLOB] ]; + [theResponse setContent: [currentBodyPart fetchBLOBWithPeek: YES] ]; } else { @@ -1447,7 +1447,7 @@ void handle_eas_terminate(int signum) else { NSString *a; - a = [[currentBodyPart fetchBLOB] activeSyncRepresentationInContext: context]; + a = [[currentBodyPart fetchBLOBWithPeek: YES] activeSyncRepresentationInContext: context]; [s appendFormat: @"0-%d", [a length]-1]; [s appendFormat: @"%@", a];