aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-06-01 07:28:44 +0000
committerFuwn <[email protected]>2023-06-01 07:28:44 +0000
commitc110ad9fa9796b0c0e893a126266db7ad0fc2547 (patch)
tree08099d717291eaac9edab9f1f0615b141d8cd9c8 /src
parentfix(response): header only on non-proxy routes (diff)
downloadseptember-c110ad9fa9796b0c0e893a126266db7ad0fc2547.tar.xz
september-c110ad9fa9796b0c0e893a126266db7ad0fc2547.zip
fix(response): remove double trailing slash
Diffstat (limited to 'src')
-rw-r--r--src/response.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/response.rs b/src/response.rs
index 6024b0a..6c8c760 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -77,7 +77,7 @@ For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".<
if response.content().is_some() {
response = match germ::request::request(&match make_url(
- req.path(),
+ req.path().trim_end_matches('/'),
true,
&mut is_proxy,
&mut is_raw,