fix incorrect detection of header's dbl quotes

This commit is contained in:
Umputun 2021-07-09 15:20:45 -05:00
parent 9218ad8bac
commit 803a076b79

View File

@ -495,7 +495,7 @@ func splitAtCommas(s string) []string {
return s
}
res := strings.TrimSpace(s)
if s[0] == '"' && s[len(s)-1] == '"' {
if res[0] == '"' && res[len(res)-1] == '"' {
res = strings.TrimPrefix(res, `"`)
res = strings.TrimSuffix(res, `"`)
}