]> code.citadel.org Git - citadel.git/commitdiff
*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Thu, 3 Feb 2005 02:44:14 +0000 (02:44 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 3 Feb 2005 02:44:14 +0000 (02:44 +0000)
webcit/groupdav_main.c
webcit/groupdav_put.c

index 07c7862a480afe295f1a79efb95fa5ab1f168e64..5d409440d5142dec0a296a599621567d13bc7860 100644 (file)
@@ -124,6 +124,7 @@ void groupdav_main(struct httprequest *req,
        strcpy(dav_ifmatch, "");
 
        for (rptr=req; rptr!=NULL; rptr=rptr->next) {
+               /* lprintf(9, "< %s\n", rptr->line); */
                if (!strncasecmp(rptr->line, "Host: ", 6)) {
                         safestrncpy(WC->http_host, &rptr->line[6],
                                sizeof WC->http_host);
@@ -139,9 +140,7 @@ void groupdav_main(struct httprequest *req,
                groupdav_common_headers();
                wprintf("WWW-Authenticate: Basic realm=\"%s\"\n",
                        serv_info.serv_humannode);
-               wprintf("Content-Type: text/plain\n");
-               wprintf("\n");
-               wprintf("GroupDAV sessions require HTTP authentication.\n");
+               wprintf("Content-Length: 0\n\n");
                return;
        }
 
index f3041ab228a97a18cd4bb3211fd71b311b0690a5..45729c7bf3874b487d9e52a4766330fe29c1f551 100644 (file)
@@ -98,7 +98,6 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
         * version, so we fail...
         */
        if (strlen(dav_ifmatch) > 0) {
-               lprintf(9, "* ifmatch failed, bailing out\n");
                old_msgnum = locate_message_by_uid(dav_uid);
                if (atol(dav_ifmatch) != old_msgnum) {
                        wprintf("HTTP/1.1 412 Precondition Failed\n");
@@ -113,12 +112,6 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
         * which allows a confirmation to be sent back to us.  That's how we
         * extract the message ID.
         */
-       lprintf(9, "* I am %s/%s/%s\n",
-               WC->wc_username,
-               WC->wc_password,
-               WC->wc_roomname
-       );
-       lprintf(9, "* allowing upload (old_msgnum=%ld, ifmatch=%s)\n", old_msgnum, dav_ifmatch);
        serv_puts("ENT0 1|||4|||1|");
        serv_gets(buf);
        if (buf[0] != '8') {
@@ -152,7 +145,6 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
        }
 
        /* Tell the client what happened. */
-       lprintf(9, "* new_msgnum = %ld\n", new_msgnum);
 
        /* Citadel failed in some way? */
        if (new_msgnum < 0L) {
@@ -168,7 +160,6 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
 
        /* We created this item for the first time. */
        if (old_msgnum < 0L) {
-               lprintf(9, "* new item created\n");
                wprintf("HTTP/1.1 201 Created\n");
                groupdav_common_headers();
                wprintf("Content-Length: 0\n");
@@ -186,7 +177,6 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
        }
 
        /* We modified an existing item. */
-       lprintf(9, "* existing item replaced\n");
        wprintf("HTTP/1.1 204 No Content\n");
        groupdav_common_headers();
        wprintf("Content-Length: 0\n\n");