diff --git a/main.go b/main.go index 2be2323..276ad87 100644 --- a/main.go +++ b/main.go @@ -81,7 +81,7 @@ func main() { // and content_type values will be applied to // every webhook request. - for i, rawurl := range vargs.Urls { + for i, rawurl := range vargs.URLs { uri, err := url.Parse(rawurl) if err != nil { diff --git a/types.go b/types.go index 59805f2..3b56224 100644 --- a/types.go +++ b/types.go @@ -2,7 +2,7 @@ package main // Params represents the valid paramenter options for the webhook plugin. type Params struct { - Urls []string `json:"urls"` + URLs []string `json:"urls"` Debug bool `json:"debug"` Auth Auth `json:"auth"` Headers map[string]string `json:"header"`