update proxmox-http dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-05-17 11:29:24 +02:00
parent 8e8836d1ea
commit 1d781c5b20
8 changed files with 10 additions and 9 deletions

View File

@ -7,7 +7,7 @@ use proxmox::api::{api, RpcEnvironment, RpcEnvironmentType, Permission};
use proxmox::api::router::{Router, SubdirMap};
use proxmox::tools::fs::{replace_file, CreateOptions};
use proxmox_http::http::ProxyConfig;
use proxmox_http::ProxyConfig;
use crate::config::node;
use crate::server::WorkerTask;

View File

@ -1660,7 +1660,7 @@ pub struct NodeStatus {
pub const HTTP_PROXY_SCHEMA: Schema = StringSchema::new(
"HTTP proxy configuration [http://]<host>[:port]")
.format(&ApiStringFormat::VerifyFn(|s| {
proxmox_http::http::ProxyConfig::parse_proxy_url(s)?;
proxmox_http::ProxyConfig::parse_proxy_url(s)?;
Ok(())
}))
.min_length(1)