mirror of
https://github.com/alvierahman90/gohookr.git
synced 2025-10-13 03:44:22 +00:00
fix program arguments not being passed to commands
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user