Skip to content

Commit

Permalink
Add OData-Version header to requests (#8288)
Browse files Browse the repository at this point in the history
Closes
#8093

(cherry picked from commit d369003)
  • Loading branch information
smizach authored and ssoroka committed Nov 13, 2020
1 parent 0310718 commit de4d70f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/redfish/redfish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de4d70f

Please sign in to comment.