StrBuf *ThisHref = NewStrBuf();
const char *pvset = NULL;
while (StrBufExtract_NextToken(ThisHref, crp.Hrefs, &pvset, '|') >= 0) {
+ StrBufTrim(ThisHref); // remove leading/trailing whitespace from the href
caldav_response(h, c, ReportOut, ThisHref);
}
FreeStrBuf(&ThisHref);
crp.Hrefs = NULL;
}
- StrBufAppendPrintf(ReportOut, "</D:multistatus>\n"); // End the REPORT.
+ StrBufAppendPrintf(ReportOut, "</D:multistatus>\n"); // End the REPORT.
add_response_header(h, strdup("Content-type"), strdup("text/xml"));
h->response_code = 207;