From 1361774412d172a4b02f84657af1b0375b33e925 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 1 Jun 2023 07:28:44 +0000 Subject: fix(response): remove double trailing slash --- Cargo.toml | 2 +- src/response.rs | 2 +- 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 "] 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, -- cgit v1.2.3