drop mut on some http client usages

thanks to commit 70142e607dda43fc778f39d52dc7bb3bba088cd3 from
proxmox repos's proxmox-http crate

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-05 10:49:03 +02:00
parent 2c64201e64
commit 0b232f2edc
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ fn apt_get_changelog(param: Value) -> Result<Value, Error> {
} }
let proxy_config = read_and_update_proxy_config()?; let proxy_config = read_and_update_proxy_config()?;
let mut client = pbs_simple_http(proxy_config); let client = pbs_simple_http(proxy_config);
let changelog_url = &pkg_info[0].change_log_url; let changelog_url = &pkg_info[0].change_log_url;
// FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it // FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it

View File

@ -115,7 +115,7 @@ async fn register_subscription(
None None
}; };
let mut client = pbs_simple_http(proxy_config); let client = pbs_simple_http(proxy_config);
let uri = "https://shop.proxmox.com/modules/servers/licensing/verify.php"; let uri = "https://shop.proxmox.com/modules/servers/licensing/verify.php";
let query = json_object_to_query(params)?; let query = json_object_to_query(params)?;