Monotone-Parent: 3edbc90046db007b2cea7d85505ba6bcecec6dd7

Monotone-Revision: 99eb9661017e4e4371b678e9d5c89d54eb0762c5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-07-04T18:22:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2008-07-04 18:22:06 +00:00
1 parent acfedae126
commit be3a423e9b
4 files changed
+49 -30

No files matched your search

+11 -15
View File
@@ -1901,27 +1901,23 @@ _selectorForProperty (NSString *property)
return [self _caldavScheduleResponse: tags];
}
- (id) POSTAction: (id) localContext
- (id) davPOSTRequest: (WORequest *) request
withContentType: (NSString *) cType
inContext: (WOContext *) localContext
{
id obj;
NSString *cType;
WORequest *rq;
iCalCalendar *calendar;
obj = nil;
rq = [localContext request];
if ([rq isSoWebDAVRequest])
if ([cType hasPrefix: @"text/calendar"])
{
cType = [rq headerForKey: @"content-type"];
if ([cType hasPrefix: @"text/calendar"])
{
calendar
= [iCalCalendar parseSingleFromSource: [rq contentAsString]];
obj = [self caldavScheduleRequest: rq
withCalendar: calendar];
}
calendar
= [iCalCalendar parseSingleFromSource: [request contentAsString]];
obj = [self caldavScheduleRequest: request
withCalendar: calendar];
}
else
obj = [super davPOSTRequest: request withContentType: cType
inContext: localContext];
return obj;
}