mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-11-22 08:49:53 +00:00
convert stdout to string before printing
This commit is contained in:
parent
a3ded5a052
commit
5ab36c57ef
2
main.go
2
main.go
@ -87,7 +87,7 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stdout, err := service.Script.Execute(payload)
|
stdout, err := service.Script.Execute(payload)
|
||||||
fmt.Println(stdout)
|
fmt.Println(string(stdout))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user