From b76cd4abd2027eb127d5582ac8e9b3f9f4515c71 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 19 Jun 2017 17:35:37 +0100 Subject: [PATCH] Fix Range header option --- fs/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }