mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 18:30:05 +08:00
update tool.rs
This commit is contained in:
12
src/tool.rs
12
src/tool.rs
@@ -212,13 +212,13 @@ pub fn get_tool_package_detail(name: &str, version: &str) -> XResult<String> {
|
|||||||
|
|
||||||
let mut url = String::new();
|
let mut url = String::new();
|
||||||
match secret {
|
match secret {
|
||||||
None => url.push_str(TOOL_PACKAGE_DETAIL_URL_WITHOUT_AUTH),
|
None => {
|
||||||
Some(_) => url.push_str(TOOL_PACKAGE_DETAIL_URL),
|
url.push_str(TOOL_PACKAGE_DETAIL_URL_WITHOUT_AUTH);
|
||||||
};
|
url.push_str("?");
|
||||||
url.push_str("?");
|
},
|
||||||
match secret {
|
|
||||||
None => (),
|
|
||||||
Some(secret) => {
|
Some(secret) => {
|
||||||
|
url.push_str(TOOL_PACKAGE_DETAIL_URL);
|
||||||
|
url.push_str("?");
|
||||||
url.push_str("__auth_token=");
|
url.push_str("__auth_token=");
|
||||||
url.push_str(&urlencoding::encode(&secret));
|
url.push_str(&urlencoding::encode(&secret));
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user