(fix) more PEEK changes

pull/210/head
Ludovic Marcotte 2016-06-01 09:38:45 -04:00
parent 59bf86fe86
commit 99e8c42a87
1 changed files with 2 additions and 2 deletions

View File

@ -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: @"<Range>0-%d</Range>", [a length]-1];
[s appendFormat: @"<Data>%@</Data>", a];