aboutsummaryrefslogtreecommitdiff
path: root/url.go
diff options
context:
space:
mode:
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