redtube fix

This commit is contained in:
Simon
2026-04-07 12:32:41 +00:00
parent a7e38c97a6
commit 81e8158161
5 changed files with 160 additions and 111 deletions

View File

@@ -685,6 +685,7 @@ pub fn requester_or_default(
}
}
#[allow(dead_code)]
pub fn strip_url_scheme(url: &str) -> String {
url.strip_prefix("https://")
.or_else(|| url.strip_prefix("http://"))
@@ -693,6 +694,7 @@ pub fn strip_url_scheme(url: &str) -> String {
.to_string()
}
#[allow(dead_code)]
pub fn build_proxy_url(options: &ServerOptions, proxy: &str, target: &str) -> String {
let target = target.trim_start_matches('/');
let base = options