libidav/utils.c

changeset 854
1c8401ece69e
parent 834
6a466635eace
child 857
03982275f29b
--- a/libidav/utils.c	Mon Jan 06 21:18:56 2025 +0100
+++ b/libidav/utils.c	Sun Feb 23 13:11:32 2025 +0100
@@ -385,7 +385,9 @@
     value.ptr++; value.length--;
     
     cxmutstr key_cp = cx_strdup(cx_strtrim(key));
-    cx_strlower(key_cp);
+    for(int i=0;i<key_cp.length;i++) {
+        key_cp.ptr[i] = tolower(key_cp.ptr[i]);
+    }
     cxmutstr value_cp = cx_strdup(cx_strtrim(value));
         
     cxMapPut(map, cx_hash_key(key_cp.ptr, key_cp.length), value_cp.ptr);

mercurial