Trim tag value, not tag key

This commit is contained in:
Deluan 2020-09-07 16:42:17 -04:00 committed by Deluan Quintão
parent 865b9cd545
commit 0802ab73d7
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ func go_map_put_str(id C.ulong, key *C.char, val *C.char) {
lock.RLock()
defer lock.RUnlock()
m := maps[uint32(id)]
k := strings.ToLower(strings.TrimSpace(C.GoString(key)))
k := strings.ToLower(C.GoString(key))
if _, ok := m[k]; !ok {
v := C.GoString(val)
v := strings.TrimSpace(C.GoString(val))
m[k] = v
}
}