mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-29 00:39:28 +00:00
Removed useless \r\n in DAV response. This confused Lightning 0.9.
Monotone-Parent: f14f194e02808a128112c1844ba759925e48c6e7 Monotone-Revision: 24fe8bbb9b61c347ef798b9f6e888d08bf6aa660 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-10-22T15:54:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
[r appendContentString: @"</ownerdisplayname><D:displayname>"];
|
||||
data = [currentFolder objectForKey: @"displayName"];
|
||||
[r appendContentString: [data stringByEscapingXMLString]];
|
||||
[r appendContentString: @"</D:displayname></D:response>\r\n"];
|
||||
[r appendContentString: @"</D:displayname></D:response>"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -297,15 +297,15 @@
|
||||
[r setHeader: @"text/xml; charset=\"utf-8\"" forKey: @"content-type"];
|
||||
[r setHeader: @"no-cache" forKey: @"pragma"];
|
||||
[r setHeader: @"no-cache" forKey: @"cache-control"];
|
||||
[r appendContentString:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"];
|
||||
[r appendContentString:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>"];
|
||||
[r appendContentString: @"<D:multistatus xmlns:D=\"DAV:\""
|
||||
@" xmlns=\"urn:ietf:params:xml:ns:inverse-dav\">\r\n"];
|
||||
@" xmlns=\"urn:ietf:params:xml:ns:inverse-dav\">"];
|
||||
|
||||
document = [[context request] contentAsDOMDocument];
|
||||
filter = [self _parseCollectionFilters: document];
|
||||
[self _appendCollectionsMatchingFilter: filter toResponse: r];
|
||||
|
||||
[r appendContentString:@"</D:multistatus>\r\n"];
|
||||
[r appendContentString:@"</D:multistatus>"];
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -394,7 +394,7 @@
|
||||
[r setStatus: 207];
|
||||
if ([content length])
|
||||
{
|
||||
[r appendContentString: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"];
|
||||
[r appendContentString: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"];
|
||||
[r appendContentString: content];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user