mirror of
https://github.com/rclone/rclone.git
synced 2025-12-24 04:04:37 +00:00
Fix Range header option
This commit is contained in:
@@ -31,12 +31,12 @@ func (o *RangeOption) Header() (key string, value string) {
|
|||||||
key = "Range"
|
key = "Range"
|
||||||
value = "bytes="
|
value = "bytes="
|
||||||
if o.Start >= 0 {
|
if o.Start >= 0 {
|
||||||
value += strconv.FormatInt(o.Start, 64)
|
value += strconv.FormatInt(o.Start, 10)
|
||||||
|
|
||||||
}
|
}
|
||||||
value += "-"
|
value += "-"
|
||||||
if o.End >= 0 {
|
if o.End >= 0 {
|
||||||
value += strconv.FormatInt(o.End, 64)
|
value += strconv.FormatInt(o.End, 10)
|
||||||
}
|
}
|
||||||
return key, value
|
return key, value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user