libidav/webdav.c

changeset 118
6d0da97105d8
parent 117
b174e721663e
--- a/libidav/webdav.c	Sat Dec 27 22:47:56 2025 +0100
+++ b/libidav/webdav.c	Thu Jan 08 18:06:04 2026 +0100
@@ -249,14 +249,14 @@
 
 DavNamespace* dav_get_namespace(DavContext *context, const char *prefix) {
     dav_context_lock(context);
-    DavNamespace *ns = cxMapGet(context->namespaces, cx_hash_key_str(prefix));
+    DavNamespace *ns = cxMapGet(context->namespaces, prefix);
     dav_context_unlock(context);
     return ns;
 }
 
 DavNamespace* dav_get_namespace_s(DavContext *context, cxstring prefix) {
     dav_context_lock(context);
-    DavNamespace *ns = cxMapGet(context->namespaces, cx_hash_key(prefix.ptr, prefix.length));
+    DavNamespace *ns = cxMapGet(context->namespaces, prefix);
     dav_context_unlock(context);
     return ns;
 }

mercurial