fix program arguments not being passed to commands

This commit is contained in:
2024-08-17 12:42:37 +01:00
parent f13dbe3250
commit 7c778d4e48

View File

@@ -15,8 +15,8 @@ type Command struct {
}
func (c Command) Execute(payload string, header http.Header) ([]byte, error) {
arguments := make([]string, 0)
copy(c.Arguments, arguments)
arguments := make([]string, len(c.Arguments))
copy(arguments, c.Arguments)
if c.AppendPayload {
arguments = append(arguments, payload)