Skip to content

Commit

Permalink
bugfix: validateRequestHeaders split on ', ' in place of ','
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Guerin committed Apr 20, 2016
1 parent fb3c9a8 commit ca95cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cors.go
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func validateRequestHeaders(requestHeaders string, config Config) bool {
return true return true
} }


headers := strings.Split(requestHeaders, ", ") headers := strings.Split(requestHeaders, ",")


for _, header := range headers { for _, header := range headers {
match := false match := false
Expand Down

0 comments on commit ca95cae

Please sign in to comment.