mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-16 18:40:19 +00:00
bugfix
This commit is contained in:
parent
ea7fd4cb87
commit
57db4f3ca6
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ type Hooks struct {
|
||||||
|
|
||||||
// ParseFormArgs gets arguments from the Form payload that should be passed to the command
|
// ParseFormArgs gets arguments from the Form payload that should be passed to the command
|
||||||
func (h *Hook) ParseFormArgs(form url.Values) []string {
|
func (h *Hook) ParseFormArgs(form url.Values) []string {
|
||||||
var args = make([]string, len(h.Args))
|
var args = make([]string, 0)
|
||||||
|
|
||||||
args = append(args, h.Command)
|
args = append(args, h.Command)
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ func (h *Hook) ParseFormArgs(form url.Values) []string {
|
||||||
|
|
||||||
// ParseJSONArgs gets arguments from the JSON payload that should be passed to the command
|
// ParseJSONArgs gets arguments from the JSON payload that should be passed to the command
|
||||||
func (h *Hook) ParseJSONArgs(payload interface{}) []string {
|
func (h *Hook) ParseJSONArgs(payload interface{}) []string {
|
||||||
var args = make([]string, len(h.Args))
|
var args = make([]string, 0)
|
||||||
|
|
||||||
args = append(args, h.Command)
|
args = append(args, h.Command)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue