Add OData-Version header to requests (#8288)

Closes
influxdata#8093
This commit is contained in:
smizach 2020-11-06 10:15:27 -05:00 committed by GitHub
parent 5af6861ebb
commit d369003912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ func (r *Redfish) getData(url string, payload interface{}) error {
req.SetBasicAuth(r.Username, r.Password)
req.Header.Set("Accept", "application/json")
req.Header.Set("Content-Type", "application/json")
req.Header.Set("OData-Version", "4.0")
resp, err := r.client.Do(req)
if err != nil {
return err