summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/gommon/bytes/bytes.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/labstack/gommon/bytes/bytes.go')
-rw-r--r--vendor/github.com/labstack/gommon/bytes/bytes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/labstack/gommon/bytes/bytes.go b/vendor/github.com/labstack/gommon/bytes/bytes.go
index 232c8d25..2f6bcec6 100644
--- a/vendor/github.com/labstack/gommon/bytes/bytes.go
+++ b/vendor/github.com/labstack/gommon/bytes/bytes.go
@@ -4,6 +4,7 @@ import (
"fmt"
"regexp"
"strconv"
+ "strings"
)
type (
@@ -73,7 +74,7 @@ func (*Bytes) Parse(value string) (i int64, err error) {
return 0, fmt.Errorf("error parsing value=%s", value)
}
bytesString := parts[1]
- multiple := parts[2]
+ multiple := strings.ToUpper(parts[2])
bytes, err := strconv.ParseFloat(bytesString, 64)
if err != nil {
return