From b7e977f78add980d5c0e871db2486859c52b0674 Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 28 Sep 2020 02:06:15 -0400 Subject: [PATCH] Don't trim trailing slash from Handler patterns --- server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server.go b/server.go index 0f5706d..ac7e366 100644 --- a/server.go +++ b/server.go @@ -361,10 +361,6 @@ func (m *ServeMux) Handle(pattern string, handler Handler) { if err != nil { panic(err) } - // Trim trailing slash from URL path - if len(url.Path) != 0 && url.Path[len(url.Path)-1] == '/' { - url.Path = url.Path[:len(url.Path)-1] - } e := muxEntry{ url, handler,