]> code.citadel.org Git - citadel.git/blobdiff - webcit/groupdav_propfind.c
* PROPFIND now outputs fully qualified URL's
[citadel.git] / webcit / groupdav_propfind.c
index 171de4170fa2bceb7bf891171c4dca532747d321..38b32decc610affdafc6e2f30a1ea25213c4a459 100644 (file)
@@ -76,7 +76,11 @@ void groupdav_propfind(char *dav_pathname) {
        serv_gets(buf);
        if (buf[0] == '1') while (serv_gets(buf), strcmp(buf, "000")) {
                wprintf(" <D:response>\n");
-               wprintf("  <D:href>%s/groupdav/Calendar/%s</D:href>\n", WC->http_host, buf);
+               wprintf("  <D:href>%s://%s/groupdav/Calendar/%s</D:href>\n",
+                       (is_https ? "https" : "http"),
+                       WC->http_host,
+                       buf
+               );
                wprintf("   <D:propstat>\n");
                wprintf("    <D:status>HTTP/1.1 200 OK</D:status>\n");
                wprintf("    <D:prop><D:getetag>\"%s\"</D:getetag></D:prop>\n", buf);