mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:09:55 +08:00
Fix Range header option
This commit is contained in:
parent
0dbf1230bc
commit
b76cd4abd2
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user