mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Trim spaces from tags
This commit is contained in:
parent
e70ec53983
commit
865b9cd545
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ 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(C.GoString(key))
|
||||
k := strings.ToLower(strings.TrimSpace(C.GoString(key)))
|
||||
if _, ok := m[k]; !ok {
|
||||
v := C.GoString(val)
|
||||
m[k] = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue