Skip to content

Commit

Permalink
only retry multi-part upload as single-part upload on GCS endpoints (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein authored Oct 21, 2024
1 parent 499781c commit 9f2a600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-put-object-streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c *Client) putObjectMultipartStream(ctx context.Context, bucketName, objec
} else {
info, err = c.putObjectMultipartStreamOptionalChecksum(ctx, bucketName, objectName, reader, size, opts)
}
if err != nil {
if err != nil && s3utils.IsGoogleEndpoint(*c.endpointURL) {
errResp := ToErrorResponse(err)
// Verify if multipart functionality is not available, if not
// fall back to single PutObject operation.
Expand Down

0 comments on commit 9f2a600

Please sign in to comment.