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 | 0921728720ed8494a799eb3a3b72525f043d05a9 (patch) | |
| tree | fd265288f913ac2fc1591071291d2cf70fe94fd1 /src | |
| parent | fix(response): header only on non-proxy routes (diff) | |
| download | september-0921728720ed8494a799eb3a3b72525f043d05a9.tar.xz september-0921728720ed8494a799eb3a3b72525f043d05a9.zip | |
fix(response): remove double trailing slash
Diffstat (limited to 'src')
| -rw-r--r-- | src/response.rs | 2 |
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, |