chore: update main.go
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||
}
|
||||
|
||||
req.Header.Set("X-API-Key", portainerToken)
|
||||
req.Header.Set("X-API-KEY", portainerToken)
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
return client.Do(req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user