Reverts commit c6aec42f213ec284e34648f3d69bcf927dccddb1 because putting the opening...
[citadel.git] / webcit / dav_delete.c
index afaae9a067aaabd389c216eaa482e864fe5f3f6d..6abd8ce8e787b5f26c887624832b62e9dc88fb84 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Handles GroupDAV DELETE requests.
  *
 /*
  * The pathname is always going to be /groupdav/room_name/euid
  */
-void dav_delete(void) {
+void dav_delete(void) 
+{
        wcsession *WCC = WC;
        char dav_uid[SIZ];
        long dav_msgnum = (-1);
        char buf[SIZ];
        int n = 0;
        StrBuf *dav_roomname = NewStrBuf();
-
+       
        /* Now extract the message euid */
        n = StrBufNum_tokens(WCC->Hdr->HR.ReqLine, '/');
-       extract_token(dav_uid, ChrPtr(WCC->Hdr->HR.ReqLine), n - 1, '/', sizeof dav_uid);
+       extract_token(dav_uid, ChrPtr(WCC->Hdr->HR.ReqLine), n-1, '/', sizeof dav_uid);
        StrBufExtract_token(dav_roomname, WCC->Hdr->HR.ReqLine, 0, '/');
 
        ///* What's left is the room name.  Remove trailing slashes. */
        //len = StrLength(WCC->Hdr->HR.ReqLine);
        //if ((len > 0) && (ChrPtr(WCC->Hdr->HR.ReqLinee)[len-1] == '/')) {
-       //      StrBufCutRight(WCC->Hdr->HR.ReqLine, 1);
+       //      StrBufCutRight(WCC->Hdr->HR.ReqLine, 1);
        //}
        //StrBufCutLeft(WCC->Hdr->HR.ReqLine, 1);