We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` // buildURL builds URL func (um urlMaker) buildURL(bucket, object string) (string, string) { var host = "" var path = ""
object = url.QueryEscape(object) object = strings.Replace(object, "+", "%20", -1) if um.Type == urlTypeCname { host = um.NetLoc path = "/" + object } else if um.Type == urlTypeIP { if bucket == "" { host = um.NetLoc path = "/" } else { host = um.NetLoc path = fmt.Sprintf("/%s/%s", bucket, object) } } else { if bucket == "" { host = um.NetLoc path = "/" } else { host = bucket + "." + um.NetLoc path = "/" + object } } return host, path
} `
当传入的object 为 "/path/to/my-object" , 斜线都会被encode,那么就是说生成下载连接只要是这种多层目录的,都有问题
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`
// buildURL builds URL
func (um urlMaker) buildURL(bucket, object string) (string, string) {
var host = ""
var path = ""
}
`
当传入的object 为 "/path/to/my-object" , 斜线都会被encode,那么就是说生成下载连接只要是这种多层目录的,都有问题
The text was updated successfully, but these errors were encountered: