提交 f021c094 编写于 作者: LinuxSuRen's avatar LinuxSuRen

Fix missing param with func RequestWithoutData

上级 37aa1d9d
......@@ -152,7 +152,7 @@ func (q *JobClient) UpdatePipeline(name, script string) (err error) {
formData := url.Values{"script": {script}}
payload := strings.NewReader(formData.Encode())
err = q.RequestWithoutData("POST", api, map[string]string{util.CONTENT_TYPE: util.APP_FORM}, payload, 200)
_, err = q.RequestWithoutData("POST", api, map[string]string{util.CONTENT_TYPE: util.APP_FORM}, payload, 200)
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册