|
|
@@ -191,7 +191,7 @@ func (bucket Bucket) GetObjectToFile(objectKey, filePath string, options ...Opti
|
|
|
// error it's nil if no error, otherwise it's an error object.
|
|
|
//
|
|
|
func (bucket Bucket) DoGetObject(request *GetObjectRequest, options []Option) (*GetObjectResult, error) {
|
|
|
- params := map[string]interface{}{}
|
|
|
+ params, _ := getRawParams(options)
|
|
|
resp, err := bucket.do("GET", request.ObjectKey, params, options, nil, nil)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
@@ -871,7 +871,7 @@ func (bucket Bucket) GetObjectToFileWithURL(signedURL, filePath string, options
|
|
|
// error it's nil if no error, otherwise it's an error object.
|
|
|
//
|
|
|
func (bucket Bucket) DoGetObjectWithURL(signedURL string, options []Option) (*GetObjectResult, error) {
|
|
|
- params := map[string]interface{}{}
|
|
|
+ params, _ := getRawParams(options)
|
|
|
resp, err := bucket.doURL("GET", signedURL, params, options, nil, nil)
|
|
|
if err != nil {
|
|
|
return nil, err
|