commit
4bcf9e8e8d
2
main.go
2
main.go
|
@ -81,7 +81,7 @@ func main() {
|
||||||
// and content_type values will be applied to
|
// and content_type values will be applied to
|
||||||
// every webhook request.
|
// every webhook request.
|
||||||
|
|
||||||
for i, rawurl := range vargs.Urls {
|
for i, rawurl := range vargs.URLs {
|
||||||
uri, err := url.Parse(rawurl)
|
uri, err := url.Parse(rawurl)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
2
types.go
2
types.go
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
// Params represents the valid paramenter options for the webhook plugin.
|
// Params represents the valid paramenter options for the webhook plugin.
|
||||||
type Params struct {
|
type Params struct {
|
||||||
Urls []string `json:"urls"`
|
URLs []string `json:"urls"`
|
||||||
Debug bool `json:"debug"`
|
Debug bool `json:"debug"`
|
||||||
Auth Auth `json:"auth"`
|
Auth Auth `json:"auth"`
|
||||||
Headers map[string]string `json:"header"`
|
Headers map[string]string `json:"header"`
|
||||||
|
|
Loading…
Reference in New Issue