From 5ab36c57ef9a8bb64195965e388c06f75ffc63fc Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Wed, 4 Aug 2021 22:18:53 +0100 Subject: [PATCH] convert stdout to string before printing --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e736a85..1ae9e8c 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,7 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) { } } stdout, err := service.Script.Execute(payload) - fmt.Println(stdout) + fmt.Println(string(stdout)) if err != nil { fmt.Println(err.Error()) }