mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
Monotone-Parent: 04adb21a2d66943bc4fbda82a60f41695303ccfb
Monotone-Revision: 771d7ebe867ac081c62c4c31e2177ddc7ac487a9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-14T23:19:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
cbf4bc2519
commit
aaded8c774
71 files changed
+2856
-1407
No files matched your search
@@ -57,6 +57,7 @@
|
||||
#import "SOGoSystemDefaults.h"
|
||||
#import "SOGoUser.h"
|
||||
#import "WORequest+SOGo.h"
|
||||
#import "WOResponse+SOGo.h"
|
||||
|
||||
#import "SOGoUserFolder.h"
|
||||
|
||||
@@ -366,12 +367,7 @@
|
||||
id <DOMDocument> document;
|
||||
|
||||
r = [context response];
|
||||
[r setStatus: 207];
|
||||
[r setContentEncoding: NSUTF8StringEncoding];
|
||||
[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 prepareDAVResponse];
|
||||
[r appendContentString: @"<D:multistatus xmlns:D=\"DAV:\""
|
||||
@" xmlns=\"urn:ietf:params:xml:ns:inverse-dav\">"];
|
||||
|
||||
@@ -473,10 +469,7 @@
|
||||
NSString *content;
|
||||
|
||||
r = [queryContext response];
|
||||
[r setContentEncoding: NSUTF8StringEncoding];
|
||||
[r setHeader: @"text/xml; charset=\"utf-8\"" forKey: @"content-type"];
|
||||
[r setHeader: @"no-cache" forKey: @"pragma"];
|
||||
[r setHeader: @"no-cache" forKey: @"cache-control"];
|
||||
[r prepareDAVResponse];
|
||||
|
||||
document = [[context request] contentAsDOMDocument];
|
||||
content = [self _davUsersFromQuery: document];
|
||||
@@ -484,10 +477,7 @@
|
||||
{
|
||||
[r setStatus: 207];
|
||||
if ([content length])
|
||||
{
|
||||
[r appendContentString: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"];
|
||||
[r appendContentString: content];
|
||||
}
|
||||
[r appendContentString: content];
|
||||
}
|
||||
else
|
||||
[r setStatus: 400];
|
||||
|
||||
Reference in new issue
Block a user