mirror of
https://github.com/alvierahman90/gohookr.git
synced 2025-10-13 16:44:22 +00:00
Compare commits
2 Commits
c5fef8e42d
...
main
Author | SHA1 | Date | |
---|---|---|---|
7c778d4e48
|
|||
f13dbe3250
|
@@ -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)
|
||||||
|
@@ -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": [
|
||||||
|
Reference in New Issue
Block a user