bugfix
This commit is contained in:
parent
ea7fd4cb87
commit
57db4f3ca6
@ -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…
Reference in New Issue
Block a user