aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/response.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 236f4c3..817ab64 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "september"
-version = "0.2.8"
+version = "0.2.9"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "A simple and efficient Gemini-to-HTTP proxy."
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,