@@ -270,8 +270,7 @@ public Blob createFrom(BlobInfo blobInfo, Path path, int bufferSize, BlobWriteOp
270
270
getOptions ().asRetryDependencies (),
271
271
retryAlgorithmManager .idempotent (),
272
272
jsonResumableWrite );
273
- HttpContentRange contentRange =
274
- HttpContentRange .of (ByteRangeSpec .relativeLength (0L , size ), size );
273
+ HttpContentRange contentRange = HttpContentRange .of (ByteRangeSpec .explicit (0L , size ), size );
275
274
ResumableOperationResult <StorageObject > put =
276
275
session .put (RewindableContent .of (path ), contentRange );
277
276
// all exception translation is taken care of down in the JsonResumableSession
@@ -1724,8 +1723,7 @@ public BlobInfo internalCreateFrom(Path path, BlobInfo info, Opts<ObjectTargetOp
1724
1723
getOptions ().asRetryDependencies (),
1725
1724
retryAlgorithmManager .idempotent (),
1726
1725
jsonResumableWrite );
1727
- HttpContentRange contentRange =
1728
- HttpContentRange .of (ByteRangeSpec .relativeLength (0L , size ), size );
1726
+ HttpContentRange contentRange = HttpContentRange .of (ByteRangeSpec .explicit (0L , size ), size );
1729
1727
ResumableOperationResult <StorageObject > put =
1730
1728
session .put (RewindableContent .of (path ), contentRange );
1731
1729
// all exception translation is taken care of down in the JsonResumableSession
0 commit comments