From 7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 01:02:51 +0800 Subject: url.go: Reformat --- url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'url.go') 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 -- cgit v1.2.3