chore: update main.go

This commit is contained in:
etwodev
2025-10-05 14:46:36 +01:00
parent 001cd5c315
commit 4bf0e0e117

View File

@@ -71,7 +71,7 @@ func request(client *http.Client, method, url string, body interface{}) (*http.R
return nil, fmt.Errorf("failed to create request: %w", err) return nil, fmt.Errorf("failed to create request: %w", err)
} }
req.Header.Set("Authorization", "Bearer "+portainerToken) req.Header.Set("X-API-Key", portainerToken)
req.Header.Set("Content-Type", "application/json") req.Header.Set("Content-Type", "application/json")
return client.Do(req) return client.Do(req)
} }