mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-06 10:15:47 +03:00
fix incorrect detection of header's dbl quotes
This commit is contained in:
@@ -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, `"`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user