From 99e8c42a87963cd8d0b071466f88ed00c10b7d46 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 2797fd71d..baf83dd0c 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -1222,7 +1222,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 { @@ -1449,7 +1449,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];