-//
// Message base functions
//
// Copyright (c) 1996-2022 by the citadel.org team
// DAV delete an object in a room.
void dav_delete_message(struct http_transaction *h, struct ctdlsession *c, long msgnum) {
ctdl_delete_msgs(c, &msgnum, 1);
- h->response_code = 204;
- h->response_string = strdup("no content");
+ do_204(h);
}
if (v) {
*v = 0;
++v;
- string_trim(v); // we now have a key (k) and a value (v)
+ string_trim(v); // we now have a key (k) and a value (v)
if ((!strcasecmp(k, "content-type")) // fields which can be passed from RFC822 to HTTP as-is
|| (!strcasecmp(k, "date"))
) {