libidav/webdav.c

branch
dav-2
changeset 893
38800d479cd4
parent 891
4d58cbcc9efa
--- a/libidav/webdav.c	Tue Dec 30 21:27:14 2025 +0100
+++ b/libidav/webdav.c	Tue Dec 30 21:39:38 2025 +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