aboutsummaryrefslogtreecommitdiffstats
path: root/src/copyparty/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/copyparty/mod.rs')
-rw-r--r--src/copyparty/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copyparty/mod.rs b/src/copyparty/mod.rs
index dfc43dc..98db471 100644
--- a/src/copyparty/mod.rs
+++ b/src/copyparty/mod.rs
@@ -295,7 +295,7 @@ impl CopypartyClient {
295 } 295 }
296 296
297 /// Is `url` the same origin as the configured Copyparty base URL? 297 /// Is `url` the same origin as the configured Copyparty base URL?
298 fn is_own_url(&self, url: &str) -> bool { 298 pub fn is_own_url(&self, url: &str) -> bool {
299 let (Ok(candidate), Ok(base)) = (Url::parse(url), Url::parse(&self.base_url)) else { 299 let (Ok(candidate), Ok(base)) = (Url::parse(url), Url::parse(&self.base_url)) else {
300 return false; 300 return false;
301 }; 301 };