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

This commit is contained in:
Ludovic Marcotte committed 2020-01-08 13:04:42 -05:00
1 parent f0980a9cbd
commit 047a98b870
1 file changed
+2 -1
+2 -1
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.