aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-chi/chi/middleware/strip.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-chi/chi/middleware/strip.go')
-rw-r--r--vendor/github.com/go-chi/chi/middleware/strip.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/go-chi/chi/middleware/strip.go b/vendor/github.com/go-chi/chi/middleware/strip.go
index 1082d713ef..992184dbf6 100644
--- a/vendor/github.com/go-chi/chi/middleware/strip.go
+++ b/vendor/github.com/go-chi/chi/middleware/strip.go
@@ -52,8 +52,8 @@ func RedirectSlashes(next http.Handler) http.Handler {
} else {
path = path[:len(path)-1]
}
- redirectUrl := fmt.Sprintf("//%s%s", r.Host, path)
- http.Redirect(w, r, redirectUrl, 301)
+ redirectURL := fmt.Sprintf("//%s%s", r.Host, path)
+ http.Redirect(w, r, redirectURL, 301)
return
}
next.ServeHTTP(w, r)