diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-19 01:02:51 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-19 01:02:51 +0800 |
commit | 7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e (patch) | |
tree | a4e6279fa73f88e6463c9d1e6aa0dc1634fc281b /url.go | |
parent | contrib: Add contrib/MR index page (diff) | |
download | forge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.tar.gz forge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.tar.zst forge-7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e.zip |
url.go: Reformat
Diffstat (limited to 'url.go')
-rw-r--r-- | url.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |