Make the first letter title case, not all of them.

This commit is contained in:
Brian Brazil 2016-03-03 14:06:11 +00:00
parent 439b116e7b
commit dff7953baa
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func (c *EmailConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
// Header names are case-insensitive, check for collisions.
normalizedHeaders := map[string]string{}
for h, v := range c.Headers {
normalized := strings.ToTitle(h)
normalized := strings.Title(h)
if _, ok := normalizedHeaders[normalized]; ok {
return fmt.Errorf("duplicate header %q in email config", normalized)
}