mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
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:
1 parent
acfedae126
commit
be3a423e9b
4 files changed
+49
-30
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user