Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Fix Range header option

Nick Craig-Woodb76cd4abd202
diff --git a/fs/options.go b/fs/options.go
index a1d65b4d8..0d6f97962 100644
--- a/fs/options.go
+++ b/fs/options.go
@@ -31,12 +31,12 @@ func (o *RangeOption) Header() (key string, value string) {
key = "Range"
value = "bytes="
if o.Start >= 0 {
- value += strconv.FormatInt(o.Start, 64)
+ value += strconv.FormatInt(o.Start, 10)
}
value += "-"
if o.End >= 0 {
- value += strconv.FormatInt(o.End, 64)
+ value += strconv.FormatInt(o.End, 10)
}
return key, value
}