Compare commits

...

2 Commits

2 changed files with 4 additions and 3 deletions

View File

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

View File

@@ -69,7 +69,8 @@ An example config file can be found [here](./config.json) but also below:
"test": { "test": {
"Script": { "Script": {
"Program": "./example.sh", "Program": "./example.sh",
"AppendPayload": true "AppendPayload": true,
"AppendHeaders": true
}, },
"DisableSignatureVerification": true, "DisableSignatureVerification": true,
"Tests": [ "Tests": [