#267: Webhook was missing URL, which made it crash. Fixed!
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
//"regexp"
|
//"regexp"
|
||||||
@@ -3558,10 +3559,13 @@ func handleWebhookCallback(resp http.ResponseWriter, request *http.Request) {
|
|||||||
// bodyWrapper = string(parsedBody)
|
// bodyWrapper = string(parsedBody)
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
url := &url.URL{}
|
||||||
newRequest := &http.Request{
|
newRequest := &http.Request{
|
||||||
|
URL: url,
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Body: ioutil.NopCloser(bytes.NewReader(b)),
|
Body: ioutil.NopCloser(bytes.NewReader(b)),
|
||||||
}
|
}
|
||||||
|
//start, startok := request.URL.Query()["start"]
|
||||||
|
|
||||||
// OrgId: activeOrgs[0].Id,
|
// OrgId: activeOrgs[0].Id,
|
||||||
workflowExecution, executionResp, err := handleExecution(item, workflow, newRequest)
|
workflowExecution, executionResp, err := handleExecution(item, workflow, newRequest)
|
||||||
@@ -6762,6 +6766,7 @@ func handleCloudExecutionOnprem(workflowId, startNode, executionSource, executio
|
|||||||
|
|
||||||
log.Println(string(b))
|
log.Println(string(b))
|
||||||
newRequest := &http.Request{
|
newRequest := &http.Request{
|
||||||
|
URL: &url.URL{},
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Body: ioutil.NopCloser(bytes.NewReader(b)),
|
Body: ioutil.NopCloser(bytes.NewReader(b)),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user