aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-03-23 06:55:19 +0000
committerFuwn <[email protected]>2024-03-23 06:55:19 +0000
commitabd7d9da15bcb3de405d3afaab41cf2ca2ac926b (patch)
tree9d708b27520740648ae3092cd20ef7e953433ffd /src
parentfix(html): html encode text body (diff)
downloadseptember-abd7d9da15bcb3de405d3afaab41cf2ca2ac926b.tar.xz
september-abd7d9da15bcb3de405d3afaab41cf2ca2ac926b.zip
fix(html): no default proxy double host
Diffstat (limited to 'src')
-rw-r--r--src/html.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.rs b/src/html.rs
index 00a1af4..83e38ab 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -73,13 +73,14 @@ pub fn from_gemini(
{
href = format!("/proxy/{}", href.trim_start_matches("gemini://"));
} else {
- href = href.trim_start_matches("gemini://").replace(
+ href = href.trim_start_matches("gemini://").replacen(
&if let Some(host) = url.host() {
host.to_string()
} else {
return None;
},
"",
+ 1,
);
}
}