Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go/pkg/basecamp/account_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ func (s *AccountService) UpdateLogo(ctx context.Context, logo io.Reader, filenam
}

// Delegate to the generated client — retry and auth are handled by the transport.
// Pass a rewindable reader so doWithRetry can replay the body on transient failures.
// Pass a *bytes.Reader so net/http snapshots it into GetBody and doWithRetry
// can replay the body on transient failures.
bodyBytes := buf.Bytes()
multipartContentType := writer.FormDataContentType()
rewindable := &rewindableReader{data: bodyBytes}
resp, err := s.client.parent.gen.UpdateAccountLogoWithBodyWithResponse(
ctx,
s.client.accountID,
multipartContentType,
rewindable,
bytes.NewReader(bodyBytes),
)
if err != nil {
return err
Expand Down
Loading
Loading