chore: update main.go

This commit is contained in:
etwodev
2025-10-05 15:28:31 +01:00
parent 3e4afc7012
commit 146caa853a

View File

@@ -72,7 +72,10 @@ func request(client *http.Client, method, url string, body interface{}) (*http.R
}
req.Header.Set("X-API-KEY", portainerToken)
if method != "GET" {
req.Header.Set("Content-Type", "application/json")
}
return client.Do(req)
}