diff --git a/providers/asrockrack/helpers.go b/providers/asrockrack/helpers.go index f92ed344..429d12bd 100644 --- a/providers/asrockrack/helpers.go +++ b/providers/asrockrack/helpers.go @@ -260,9 +260,13 @@ func (a *ASRockRack) uploadFirmware(ctx context.Context, endpoint string, fwRead "Content-Type": form.FormDataContentType(), } - mybytes, err := io.ReadAll(pipeReader) - mystring := string(mybytes[:]) - return fmt.Errorf("data: %s", mystring) + rc := <-errCh + + //mybytes, err := io.ReadAll(pipeReader) + //if len(mybytes) < 1000 { + // mystring := string(mybytes[:]) + // return fmt.Errorf("data: %s", mystring) + //} // POST payload _, statusCode, err := a.queryHTTPS(ctx, endpoint, "POST", pipeReader, headers, contentLength)