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) {
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)

View File

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