diff --git a/providers/redfish/firmware.go b/providers/redfish/firmware.go index e2def40e..25b75e6a 100644 --- a/providers/redfish/firmware.go +++ b/providers/redfish/firmware.go @@ -173,9 +173,10 @@ func (c *Conn) unstructuredHttpUpload(ctx context.Context, url, applyAt string, return nil, fmt.Errorf("unable to execute request, no target provided") } + // TODO: transform this to read the update so that we don't hold the data in memory b, _ := io.ReadAll(update) - payloadReadSeeker := bytes.NewReader(b) + return c.redfishwrapper.RunRawRequestWithHeaders(http.MethodPost, url, payloadReadSeeker, "application/octet-stream", nil) }