diff options
| author | Fuwn <[email protected]> | 2023-06-01 07:28:44 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-06-01 07:28:44 +0000 |
| commit | c110ad9fa9796b0c0e893a126266db7ad0fc2547 (patch) | |
| tree | 08099d717291eaac9edab9f1f0615b141d8cd9c8 | |
| parent | fix(response): header only on non-proxy routes (diff) | |
| download | september-c110ad9fa9796b0c0e893a126266db7ad0fc2547.tar.xz september-c110ad9fa9796b0c0e893a126266db7ad0fc2547.zip | |
fix(response): remove double trailing slash
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/response.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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, |