--- a/src/server/webdav/webdav.c Wed Dec 17 22:15:48 2025 +0100 +++ b/src/server/webdav/webdav.c Tue Dec 30 21:44:49 2025 +0100 @@ -112,7 +112,7 @@ WebdavType webdavType; webdavType.init = webdavInit; webdavType.create = webdavCreate; - return cxMapPut(webdav_type_map, cx_hash_key_str(name), &webdavType); + return cxMapPut(webdav_type_map, name, &webdavType); } WebdavType* webdav_get_type(cxstring dav_class) { @@ -133,7 +133,7 @@ } WebdavBackend* webdav_create(Session *sn, Request *rq, const char *dav_class, pblock *pb, void *initData) { - WebdavType *webdavType = cxMapGet(webdav_type_map, cx_hash_key_str(dav_class)); + WebdavType *webdavType = cxMapGet(webdav_type_map, dav_class); if(!webdavType) { log_ereport(LOG_MISCONFIG, "webdav_create: unkown dav type %s", dav_class); return NULL; @@ -168,30 +168,30 @@ return REQ_ABORTED; } - cxMapPut(method_handler_map, cx_hash_key_str("OPTIONS"), webdav_options); - cxMapPut(method_handler_map, cx_hash_key_str("PROPFIND"), webdav_propfind); - cxMapPut(method_handler_map, cx_hash_key_str("PROPPATCH"), webdav_proppatch); - cxMapPut(method_handler_map, cx_hash_key_str("MKCOL"), webdav_mkcol); - cxMapPut(method_handler_map, cx_hash_key_str("POST"), webdav_post); - cxMapPut(method_handler_map, cx_hash_key_str("DELETE"), webdav_delete); - cxMapPut(method_handler_map, cx_hash_key_str("PUT"), webdav_put); - cxMapPut(method_handler_map, cx_hash_key_str("COPY"), webdav_copy); - cxMapPut(method_handler_map, cx_hash_key_str("MOVE"), webdav_move); - cxMapPut(method_handler_map, cx_hash_key_str("LOCK"), webdav_lock); - cxMapPut(method_handler_map, cx_hash_key_str("UNLOCK"), webdav_unlock); - cxMapPut(method_handler_map, cx_hash_key_str("REPORT"), webdav_report); - cxMapPut(method_handler_map, cx_hash_key_str("ACL"), webdav_acl); + cxMapPut(method_handler_map, "OPTIONS", webdav_options); + cxMapPut(method_handler_map, "PROPFIND", webdav_propfind); + cxMapPut(method_handler_map, "PROPPATCH", webdav_proppatch); + cxMapPut(method_handler_map, "MKCOL", webdav_mkcol); + cxMapPut(method_handler_map, "POST", webdav_post); + cxMapPut(method_handler_map, "DELETE", webdav_delete); + cxMapPut(method_handler_map, "PUT", webdav_put); + cxMapPut(method_handler_map, "COPY", webdav_copy); + cxMapPut(method_handler_map, "MOVE", webdav_move); + cxMapPut(method_handler_map, "LOCK", webdav_lock); + cxMapPut(method_handler_map, "UNLOCK", webdav_unlock); + cxMapPut(method_handler_map, "REPORT", webdav_report); + cxMapPut(method_handler_map, "ACL", webdav_acl); - cxMapPut(method_handler_map, cx_hash_key_str("SEARCH"), webdav_search); + cxMapPut(method_handler_map, "SEARCH", webdav_search); - cxMapPut(method_handler_map, cx_hash_key_str("VERSION-CONTROL"), webdav_version_control); - cxMapPut(method_handler_map, cx_hash_key_str("CHECKOUT"), webdav_checkout); - cxMapPut(method_handler_map, cx_hash_key_str("CHECKIN"), webdav_checkin); - cxMapPut(method_handler_map, cx_hash_key_str("UNCHECKOUT"), webdav_uncheckout); - cxMapPut(method_handler_map, cx_hash_key_str("MKWORKSPACE"), webdav_mkworkspace); - cxMapPut(method_handler_map, cx_hash_key_str("UPDATE"), webdav_update); - cxMapPut(method_handler_map, cx_hash_key_str("LABEL"), webdav_label); - cxMapPut(method_handler_map, cx_hash_key_str("MERGE"), webdav_merge); + cxMapPut(method_handler_map, "VERSION-CONTROL", webdav_version_control); + cxMapPut(method_handler_map, "CHECKOUT", webdav_checkout); + cxMapPut(method_handler_map, "CHECKIN", webdav_checkin); + cxMapPut(method_handler_map, "UNCHECKOUT", webdav_uncheckout); + cxMapPut(method_handler_map, "MKWORKSPACE", webdav_mkworkspace); + cxMapPut(method_handler_map, "UPDATE", webdav_update); + cxMapPut(method_handler_map, "LABEL", webdav_label); + cxMapPut(method_handler_map, "MERGE", webdav_merge); dav_namespace.href = (xmlChar*)"DAV:"; dav_namespace.prefix = (xmlChar*)"D";