mirror of
https://github.com/umputun/reproxy.git
synced 2024-08-16 20:20:45 +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
|
||||
}
|
||||
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, `"`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user