mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
Revert to original hook import
This commit is contained in:
parent
395fb41d23
commit
78aa85e0c1
1 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"./hook"
|
||||
"github.com/adnanh/webhook/hook"
|
||||
|
||||
"github.com/codegangsta/negroni"
|
||||
"github.com/gorilla/mux"
|
||||
|
@ -333,8 +333,7 @@ func handleHook(h *hook.Hook, headers, query, payload *map[string]interface{}, b
|
|||
|
||||
cmd.Env = append(os.Environ(), envs...)
|
||||
|
||||
var files []hook.FileParameter
|
||||
files, errors = h.ExtractCommandArgumentsForFile(headers, query, payload)
|
||||
files, errors := h.ExtractCommandArgumentsForFile(headers, query, payload)
|
||||
|
||||
if errors != nil {
|
||||
for _, err := range errors {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue