-#ifdef DEV_RESTDAV
- /*
- * If the room name is blank, the client is requesting a
- * folder list.
- */
- SubRooms = NewHash(1, Flathash);
- State = GotoRestRoom(SubRooms);
- if (((State & REST_IN_ROOM) == 0) ||
- (((State & (REST_GOT_LOCAL_PART)) == 0) &&
- (WCC->Hdr->HR.dav_depth == 0)))
- {
- now = time(NULL);
- http_datestring(datestring, sizeof datestring, now);
-
- /*
- * Be rude. Completely ignore the XML request and simply send them
- * everything we know about. Let the client sort it out.
- */
- hprintf("HTTP/1.0 207 Multi-Status\r\n");
- groupdav_common_headers();
- hprintf("Date: %s\r\n", datestring);
- hprintf("Content-type: text/xml\r\n");
- if (DisableGzip || (!WCC->Hdr->HR.gzip_ok))
- hprintf("Content-encoding: identity\r\n");
-
- begin_burst();
-
-
- /*
- * If the client is requesting the root, show a root node.
- */
- do_template("dav_propfind_top");
- end_burst();
- FreeStrBuf(&dav_roomname);
- FreeStrBuf(&dav_uid);
- FreeHashList(&SubRooms);
- return;
- }
-
- if ((State & (REST_GOT_LOCAL_PART)) == 0) {
- readloop(headers, eReadEUIDS);
- FreeHashList(&SubRooms);
- return;
-
- }
-
-
-
- FreeHashList(&SubRooms);
-
-#endif