libidav/resource.c

branch
dav-2
changeset 893
38800d479cd4
parent 891
4d58cbcc9efa
--- a/libidav/resource.c	Tue Dec 30 21:27:14 2025 +0100
+++ b/libidav/resource.c	Tue Dec 30 21:39:38 2025 +0100
@@ -1508,7 +1508,7 @@
     // create an xml document containing all properties
     CxMap *nsmap = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 8);
     cxSetDestructor(nsmap, free);
-    cxMapPut(nsmap, cx_hash_key_str("DAV:"), strdup("D"));
+    cxMapPut(nsmap, "DAV:", strdup("D"));
     
     cxBufferPutString(content, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
     cxBufferPutString(content, "<D:prop xmlns:D=\"DAV:\">\n");

mercurial