From 908e47a25a281d7812c0861a5bf3105a91ae2229 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 1 Jun 2016 09:38:45 -0400 Subject: [PATCH] (fix) more PEEK changes --- ActiveSync/SOGoActiveSyncDispatcher.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];