diff --git a/cloudinary-core/src/main/java/com/cloudinary/Uploader.java b/cloudinary-core/src/main/java/com/cloudinary/Uploader.java index d32cf7f6..c6e17397 100644 --- a/cloudinary-core/src/main/java/com/cloudinary/Uploader.java +++ b/cloudinary-core/src/main/java/com/cloudinary/Uploader.java @@ -8,6 +8,7 @@ import java.io.*; import java.util.Arrays; import java.util.HashMap; +import java.util.Locale; import java.util.Map; @SuppressWarnings({"rawtypes", "unchecked"}) @@ -194,7 +195,7 @@ private Map uploadLargeParts(InputStream input, Map options, int bufferSize, lon System.arraycopy(buffer, 0, finalBuffer, 0, currentBufferSize); buffer = finalBuffer; } - String range = String.format("bytes %d-%d/%d", currentLoc, currentLoc + currentBufferSize - 1, length); + String range = String.format(Locale.US, "bytes %d-%d/%d", currentLoc, currentLoc + currentBufferSize - 1, length); extraHeaders.put("Content-Range", range); Map sentParams = new HashMap(); sentParams.putAll(params);