From 7fb0b2bda50d27c2bcf7a6501302a7c74ace4d7e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 01:02:51 +0800 Subject: [PATCH] url.go: Reformat --- url.go | 2 +- diff --git a/url.go b/url.go index 0cd08d123b49ec95de68d0211632360ce19bed5b..1fcedb31ee79788cc0dce3bf1f70b953983b1a87 100644 --- a/url.go +++ b/url.go @@ -96,7 +96,7 @@ rest = request_uri[path_end:] } 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 -- 2.48.1