From 177623bbc02492d4e55e6bf2b8236de7593c86cb Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 22 Feb 2021 11:03:10 +0100 Subject: [PATCH] #267: Webhook was missing URL, which made it crash. Fixed! --- backend/go-app/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 230f50ae..3031b0b5 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -17,6 +17,7 @@ import ( "log" "net" "net/http" + "net/url" "os" "os/exec" //"regexp" @@ -3558,10 +3559,13 @@ func handleWebhookCallback(resp http.ResponseWriter, request *http.Request) { // bodyWrapper = string(parsedBody) //} + url := &url.URL{} newRequest := &http.Request{ + URL: url, Method: "POST", Body: ioutil.NopCloser(bytes.NewReader(b)), } + //start, startok := request.URL.Query()["start"] // OrgId: activeOrgs[0].Id, workflowExecution, executionResp, err := handleExecution(item, workflow, newRequest) @@ -6762,6 +6766,7 @@ func handleCloudExecutionOnprem(workflowId, startNode, executionSource, executio log.Println(string(b)) newRequest := &http.Request{ + URL: &url.URL{}, Method: "POST", Body: ioutil.NopCloser(bytes.NewReader(b)), }