fix(eas): avoid generating broken XML ouput (fixes #4927)

pull/265/head
Ludovic Marcotte 2020-01-08 13:04:42 -05:00
parent f0980a9cbd
commit 047a98b870
1 changed files with 2 additions and 1 deletions

View File

@ -2592,7 +2592,6 @@ FIXME
//[output appendFormat: @"<Status>%d</Status>", 14];
}
[output appendString: @"<Collections>"];
s = nil;
// We enter our loop detection change
@ -2695,6 +2694,8 @@ FIXME
//
if (changeDetected || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"2.5"] || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"12.0"])
{
[output appendString: @"<Collections>"];
// We always return the last generated response.
// If we only return <Sync><Collections/></Sync>,
// iOS powered devices will simply crash.