aboutsummaryrefslogtreecommitdiff
path: root/url.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 01:02:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 01:02:51 +0800
commit7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e (patch)
treea4e6279fa73f88e6463c9d1e6aa0dc1634fc281b /url.go
parentcontrib: Add contrib/MR index page (diff)
downloadforge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.tar.gz
forge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.tar.zst
forge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.zip
url.go: Reformat
Diffstat (limited to 'url.go')
-rw-r--r--url.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/url.go b/url.go
index 0cd08d1..1fcedb3 100644
--- a/url.go
+++ b/url.go
@@ -96,7 +96,7 @@ func redirect_without_slash(w http.ResponseWriter, r *http.Request) bool {
}
if strings.HasSuffix(path, "/") {
- http.Redirect(w, r, strings.TrimSuffix(path, "/") + rest, http.StatusSeeOther)
+ http.Redirect(w, r, strings.TrimSuffix(path, "/")+rest, http.StatusSeeOther)
return true
}
return false