fix: agent tasks cmd

This commit is contained in:
engigu
2025-12-30 21:09:36 +08:00
parent 7f83401b2e
commit 94c6e1b7fb
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -490,6 +490,7 @@ func (a *Agent) doRequest(method, path string, body interface{}) (*http.Response
req.Header.Set("Authorization", "Bearer "+a.config.Token)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Machine-ID", a.machineID)
return a.client.Do(req)
}