of globally absolute URL's.
$Id$
+Mon Jan 30 15:25:43 EST 2006 ajc
+* GroupDAV now outputs <href> tags containing server-absolute URL's instead
+ of globally absolute URL's.
+
Mon Jan 30 12:09:00 EST 2006 ajc
* When the -f option is specified, honor X-Forwarded-Host: in addition
to X-Forwarded-For: headers. This helps GroupDAV along.
strcpy(dav_ifmatch, "");
for (rptr=req; rptr!=NULL; rptr=rptr->next) {
- /* lprintf(9, "< %s\n", rptr->line); */
-
- /*
- * We don't appear to need this; it was already done in webcit.c
- if (!strncasecmp(rptr->line, "Host: ", 6)) {
- safestrncpy(WC->http_host, &rptr->line[6],
- sizeof WC->http_host);
- }
- */
-
if (!strncasecmp(rptr->line, "If-Match: ", 10)) {
safestrncpy(dav_ifmatch, &rptr->line[10],
sizeof dav_ifmatch);
wprintf("<D:response>");
wprintf("<D:href>");
+/*
if (strlen(WC->http_host) > 0) {
wprintf("%s://%s",
(is_https ? "https" : "http"),
WC->http_host);
}
+ */
wprintf("/groupdav/");
urlescputs(roomname);
wprintf("/</D:href>");
wprintf("<D:response>");
wprintf("<D:href>");
+/*
if (strlen(WC->http_host) > 0) {
wprintf("%s://%s",
(is_https ? "https" : "http"),
WC->http_host);
}
+ */
wprintf("/groupdav/");
urlescputs(WC->wc_roomname);
euid_escapize(encoded_uid, dav_uid);
if (strlen(uid) > 0) {
wprintf("<D:response>");
wprintf("<D:href>");
+/*
if (strlen(WC->http_host) > 0) {
wprintf("%s://%s",
(is_https ? "https" : "http"),
WC->http_host);
}
+ */
wprintf("/groupdav/");
urlescputs(WC->wc_roomname);
euid_escapize(encoded_uid, uid);
wprintf("etag: \"%ld\"\r\n", new_msgnum);
wprintf("Content-Length: 0\r\n");
wprintf("Location: ");
+/*
if (strlen(WC->http_host) > 0) {
wprintf("%s://%s",
(is_https ? "https" : "http"),
WC->http_host);
}
+ */
wprintf("/groupdav/");
urlescputs(dav_roomname);
wprintf("/%s\r\n", dav_uid);