mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 08:13:28 +03:00
Collapse GetPartialObject() into GetObject()
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"bytes"
|
||||
"crypto/hmac"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"sort"
|
||||
@@ -79,7 +78,7 @@ func urlEncodeName(name string) (string, error) {
|
||||
default:
|
||||
len := utf8.RuneLen(s)
|
||||
if len < 0 {
|
||||
return "", errors.New("invalid utf-8")
|
||||
return "", iodine.New(InvalidArgument{}, nil)
|
||||
}
|
||||
u := make([]byte, len)
|
||||
utf8.EncodeRune(u, s)
|
||||
|
||||
Reference in New Issue
Block a user