rename wprintf to wc_printf; wchar.h also has a wprintf
[citadel.git] / webcit / groupdav_put.c
index 8d08a1e49d184e88999b554127c115adb94dac05..d79d17fa855b6e2280680f80a9089724aedb8f59 100644 (file)
@@ -33,7 +33,8 @@ void groupdav_put_bigics(void)
                hprintf("HTTP/1.1 502 Bad Gateway\r\n");
                groupdav_common_headers();
                hprintf("Content-type: text/plain\r\n");
-               wprintf("%s\r\n", &buf[4]);
+               begin_burst();
+               wc_printf("%s\r\n", &buf[4]);
                end_burst();
                return;
        }
@@ -70,7 +71,8 @@ void groupdav_put(void)
                hprintf("HTTP/1.1 404 not found\r\n");
                groupdav_common_headers();
                hprintf("Content-Type: text/plain\r\n");
-               wprintf("The object you requested was not found.\r\n");
+               begin_burst();
+               wc_printf("The object you requested was not found.\r\n");
                end_burst();
                return;
        }
@@ -92,7 +94,8 @@ void groupdav_put(void)
                hprintf("HTTP/1.1 404 not found\r\n");
                groupdav_common_headers();
                hprintf("Content-Type: text/plain\r\n");
-               wprintf("There is no folder called \"%s\" on this server.\r\n",
+               begin_burst();
+               wc_printf("There is no folder called \"%s\" on this server.\r\n",
                        ChrPtr(dav_roomname));
                end_burst();
                FreeStrBuf(&dav_roomname);
@@ -116,7 +119,7 @@ void groupdav_put(void)
                        lprintf(9, "HTTP/1.1 412 Precondition Failed (ifmatch=%ld, old_msgnum=%ld)\r\n",
                                StrTol(WCC->Hdr->HR.dav_ifmatch), old_msgnum);
                        groupdav_common_headers();
-                       hprintf("Content-Length: 0\r\n");
+                       
                        end_burst();
                        FreeStrBuf(&dav_roomname);
                        FreeStrBuf(&dav_uid);
@@ -144,8 +147,8 @@ void groupdav_put(void)
                hprintf("HTTP/1.1 502 Bad Gateway\r\n");
                groupdav_common_headers();
                hprintf("Content-type: text/plain\r\n");
-
-               wprintf("%s\r\n", &buf[4]);
+               begin_burst();
+               wc_printf("%s\r\n", &buf[4]);
                end_burst();
                return;
        }
@@ -181,7 +184,8 @@ void groupdav_put(void)
                hprintf("HTTP/1.1 502 Bad Gateway\r\n");
                groupdav_common_headers();
                hprintf("Content-type: text/plain\r\n");
-               wprintf("new_msgnum is %ld\r\n"
+               begin_burst();
+               wc_printf("new_msgnum is %ld\r\n"
                        "\r\n", new_msgnum);
                end_burst();
                FreeStrBuf(&dav_roomname);