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