diff --git a/pkg/cloudcommon/db/taskman/tasks.go b/pkg/cloudcommon/db/taskman/tasks.go index c5064fd228..28ea4801a0 100644 --- a/pkg/cloudcommon/db/taskman/tasks.go +++ b/pkg/cloudcommon/db/taskman/tasks.go @@ -19,7 +19,6 @@ import ( "database/sql" "fmt" "net/http" - "path/filepath" "reflect" "runtime/debug" "strconv" @@ -831,7 +830,7 @@ func (task *STask) GetTaskRequestHeader() http.Header { header := mcclient.GetTokenHeaders(userCred) header.Set(mcclient.TASK_ID, task.GetTaskId()) if len(serviceUrl) > 0 { - notifyUrl := filepath.Join(serviceUrl, "tasks", task.GetTaskId()) + notifyUrl := fmt.Sprintf("%s/tasks/%s", serviceUrl, task.GetTaskId()) header.Set(mcclient.TASK_NOTIFY_URL, notifyUrl) } return header