fix(eas): avoid generating broken XML ouput (fixes #4927)
parent
f0980a9cbd
commit
047a98b870
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue