mirror of
https://github.com/umputun/reproxy.git
synced 2024-09-11 17:07:19 +03:00
fix incorrect detection of header's dbl quotes
This commit is contained in:
parent
9218ad8bac
commit
803a076b79
@ -495,7 +495,7 @@ func splitAtCommas(s string) []string {
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
res := strings.TrimSpace(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.TrimPrefix(res, `"`)
|
||||||
res = strings.TrimSuffix(res, `"`)
|
res = strings.TrimSuffix(res, `"`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user