use result

This commit is contained in:
2020-04-01 01:59:15 +08:00
parent 75f56cb5e2
commit d27b09cc1a
3 changed files with 129 additions and 161 deletions

View File

@@ -98,6 +98,7 @@ impl<'a> OSSClient<'a> {
}
}
// https://endpoint, or http://endpoint -> endpoint
fn remove_endpoint_http_or_s(endpoint: &str) -> String {
let mut endpoint = endpoint.to_owned();
if endpoint.starts_with("http://") {