mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: from John Ahern: send calendarserver-private-events in DAV: header to activate private events in iCal
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@354 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
60a2264618
commit
078f298f88
@ -697,7 +697,6 @@ public class CaldavConnection extends AbstractConnection {
|
||||
public void sendOptions() throws IOException {
|
||||
HashMap<String, String> headers = new HashMap<String, String>();
|
||||
headers.put("Allow", "OPTIONS, GET, PROPFIND, PUT, POST");
|
||||
headers.put("DAV", "1, 2, 3, access-control, calendar-access, ticket, calendar-schedule");
|
||||
sendHttpResponse(HttpStatus.SC_OK, headers, null, null, true);
|
||||
}
|
||||
|
||||
@ -714,6 +713,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
public void sendHttpResponse(int status, Map<String, String> headers, String contentType, String content, boolean keepAlive) throws IOException {
|
||||
sendClient("HTTP/1.1 " + status + " " + HttpStatus.getStatusText(status));
|
||||
sendClient("Server: DavMail Gateway");
|
||||
sendClient("DAV: 1, 2, 3, access-control, calendar-access, ticket, calendar-schedule, calendarserver-private-events");
|
||||
SimpleDateFormat formatter = new java.text.SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z", Locale.ENGLISH);
|
||||
sendClient("Date: " + formatter.format(new java.util.Date()));
|
||||
if (headers != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user