c048efbb by astaxie

fix bug

1 parent 490747a8
...@@ -75,8 +75,8 @@ func LoadConfig(name string) (*Config, error) { ...@@ -75,8 +75,8 @@ func LoadConfig(name string) (*Config, error) {
75 } 75 }
76 76
77 val := bytes.SplitN(line, bEqual, 2) 77 val := bytes.SplitN(line, bEqual, 2)
78 if bytes.HasPrefix(strings.TrimSpace(string(val[1])), bDQuote) { 78 if bytes.HasPrefix([]byte(strings.TrimSpace(string(val[1]))), bDQuote) {
79 val[1] = bytes.Trim(strings.TrimSpace(string(val[1])), `"`) 79 val[1] = bytes.Trim([]byte(strings.TrimSpace(string(val[1]))), `"`)
80 } 80 }
81 81
82 key := strings.TrimSpace(string(val[0])) 82 key := strings.TrimSpace(string(val[0]))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!