mirror of
https://github.com/minio/minio.git
synced 2025-12-07 08:12:37 -05:00
ObjectStorage refactor to take io.Reader instead of []byte
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package gateway
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -212,7 +213,7 @@ func SimpleFileStorageDriver(bucket string, input chan ObjectRequest, config Gat
|
||||
}
|
||||
case "PUT":
|
||||
objectPath := path.Join(bucket, request.path)
|
||||
fileStorage.Put(objectPath, request.object)
|
||||
fileStorage.Put(objectPath, bytes.NewBuffer(request.object))
|
||||
request.callback <- nil
|
||||
default:
|
||||
request.callback <- errors.New("Unexpected message")
|
||||
|
||||
Reference in New Issue
Block a user