|
|
@@ -6,6 +6,7 @@ package storage |
|
|
|
|
|
|
|
import ( |
|
|
|
"io" |
|
|
|
"net/url" |
|
|
|
"path" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
@@ -262,6 +263,7 @@ func GetObsCreateSignedUrl(jobName, parentDir, fileName string) (string, error) |
|
|
|
input.Method = obs.HttpMethodGet |
|
|
|
|
|
|
|
reqParams := make(map[string]string) |
|
|
|
fileName = url.QueryEscape(fileName) |
|
|
|
reqParams["response-content-disposition"] = "attachment; filename=\"" + fileName + "\"" |
|
|
|
input.QueryParams = reqParams |
|
|
|
output, err := ObsCli.CreateSignedUrl(input) |
|
|
|