summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index b987ef2..0597e83 100644
--- a/main.go
+++ b/main.go
@@ -42,6 +42,7 @@ func main() {
func finalHandler(w http.ResponseWriter, r *http.Request) {
p := r.Context().Value(middleware.PrinterKey).(i18n.Printer)
+ /* Strip trailing slash from the URL */
path := r.URL.Path
if path != "/" && path[len(path)-1] == '/' {
path = path[:len(path)-1]