X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdav_options.c;h=f7687cf4ef347269c42029f79c50eb181e69c90f;hb=fb6f6fa4ec4e3277e30d84326d48e6850822d318;hp=ada3e41ef5fa1f40dcccf9c4ececb162d2fdf395;hpb=ae6cddd2ff16f7056db3c773a96f20bc77f5d2c3;p=citadel.git diff --git a/webcit/dav_options.c b/webcit/dav_options.c index ada3e41ef..f7687cf4e 100644 --- a/webcit/dav_options.c +++ b/webcit/dav_options.c @@ -1,21 +1,15 @@ /* * Handles DAV OPTIONS requests (experimental -- not required by GroupDAV) * - * Copyright (c) 2005-2010 by the citadel.org team + * Copyright (c) 2005-2012 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License, version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "webcit.h" @@ -125,7 +119,10 @@ void dav_options(void) * We got to this point, which means that the client is requesting * an OPTIONS on the room itself. */ - syslog(LOG_DEBUG, "\033[36mOPTIONS requested for room\033[0m"); + syslog(LOG_DEBUG, "\033[36mOPTIONS requested for room '%s' (%slogged in)\033[0m", + ChrPtr(WC->CurRoom.name), + ((WC->logged_in) ? "" : "not ") + ); hprintf("HTTP/1.1 200 OK\r\n"); dav_common_headers(); hprintf("Date: %s\r\n", datestring); @@ -135,13 +132,14 @@ void dav_options(void) */ if ( (WC->CurRoom.view == VIEW_CALENDAR) || (WC->CurRoom.view == VIEW_CALBRIEF) ) { hprintf("DAV: 1, calendar-access\r\n"); + syslog(LOG_DEBUG, "\033[36mDAV: 1, calendar-access\033[0m"); } else { hprintf("DAV: 1\r\n"); + syslog(LOG_DEBUG, "\033[36mDAV: 1\033[0m"); } - hprintf("Allow: OPTIONS, PROPFIND, GET, PUT\r\n"); + hprintf("Allow: OPTIONS, PROPFIND, GET, PUT, REPORT\r\n"); begin_burst(); - wc_printf("\r\n"); end_burst(); }